/* 半岛体育 - 主样式文件 */
/* 移动端优先设计 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部信息栏 */
.top-bar {
    background: #1a5fb4;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .welcome {
    display: none;
}

.top-bar .hotline {
    font-weight: bold;
}

.top-bar .hotline span {
    color: #ffd700;
    font-size: 16px;
}

/* 头部导航 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #1a5fb4;
    font-weight: bold;
}

.logo h1 span {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    letter-spacing: 1px;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1a5fb4;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* 导航菜单 */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
}

.main-nav ul li {
    border-bottom: 1px solid #eee;
}

.main-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 15px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #1a5fb4;
    background: #f5f5f5;
}

/* Banner区域 */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3a7a 100%);
}

.banner-slide {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.banner-content {
    max-width: 800px;
}

.banner-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffd700;
    color: #1a5fb4;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* 通用板块样式 */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .en-title {
    font-size: 24px;
    color: #1a5fb4;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-header .cn-title {
    font-size: 18px;
    color: #666;
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: #1a5fb4;
    margin: 15px auto 0;
}

/* 核心服务板块 */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    height: 120px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.service-card h3 {
    padding: 20px 15px 10px;
    font-size: 18px;
    color: #333;
}

.service-card p {
    padding: 0 15px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 关于我们板块 */
.about-section {
    background: #f8f9fa;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text h3 {
    font-size: 22px;
    color: #1a5fb4;
    margin-bottom: 15px;
}

.about-text .intro {
    font-size: 15px;
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
}

.about-text .highlight {
    background: #1a5fb4;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3a7a 100%);
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 30px;
}

/* 数据展示板块 */
.stats-section {
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3a7a 100%);
    color: #fff;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .number {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
}

.stat-item .number span {
    font-size: 20px;
}

.stat-item .label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

/* 新闻动态板块 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-item a {
    display: flex;
    flex-direction: column;
}

.news-date {
    background: #1a5fb4;
    color: #fff;
    padding: 15px;
    text-align: center;
    min-width: 80px;
}

.news-date .day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    margin-top: 5px;
}

.news-info {
    padding: 15px;
    flex: 1;
}

.news-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}

.news-more a {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #1a5fb4;
    color: #1a5fb4;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.news-more a:hover {
    background: #1a5fb4;
    color: #fff;
}

/* 优势板块 */
.advantages-section {
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.advantage-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    color: #fff;
}

.advantage-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.advantage-item p {
    font-size: 13px;
    color: #666;
}

/* 合作伙伴板块 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.partner-item {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.partner-item:hover {
    background: #1a5fb4;
    color: #fff;
}

/* 页脚 */
footer {
    background: #1a2a3a;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-info p {
    font-size: 14px;
    line-height: 2;
    color: #ccc;
}

.footer-info p strong {
    color: #fff;
}

.footer-nav h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #2a3a4a;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #ffd700;
}

/* 内页通用样式 */
.page-banner {
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3a7a 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.page-banner .breadcrumb a {
    color: #fff;
}

.page-banner .breadcrumb a:hover {
    color: #ffd700;
}

.page-content {
    padding: 50px 0;
}

/* 关于我们页面 */
.about-detail {
    line-height: 2;
    color: #666;
}

.about-detail h3 {
    font-size: 20px;
    color: #1a5fb4;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #1a5fb4;
}

.about-detail p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.timeline {
    margin: 30px 0;
    padding-left: 20px;
    border-left: 2px solid #1a5fb4;
}

.timeline-item {
    position: relative;
    padding: 0 0 30px 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #1a5fb4;
    border-radius: 50%;
}

.timeline-item .year {
    font-size: 18px;
    font-weight: bold;
    color: #1a5fb4;
}

.timeline-item .desc {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 服务页面 */
.service-detail {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.service-detail h3 {
    font-size: 20px;
    color: #1a5fb4;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.service-detail p {
    color: #666;
    line-height: 2;
    margin-bottom: 15px;
}

.service-detail ul {
    padding-left: 20px;
}

.service-detail ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #666;
}

.service-detail ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a5fb4;
    font-weight: bold;
}

/* 新闻列表页 */
.news-list-page .news-item a {
    flex-direction: row;
}

.news-list-page .news-date {
    min-width: 100px;
}

/* 新闻详情页 */
.news-detail {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.news-detail .news-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-detail .news-meta {
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.news-detail .news-body {
    line-height: 2;
    color: #666;
}

.news-detail .news-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.news-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-nav a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-nav a:hover {
    color: #1a5fb4;
}

/* 联系我们页面 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.contact-form h3 {
    font-size: 20px;
    color: #1a5fb4;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5fb4;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a5fb4 0%, #2d7dd2 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* 平板端适配 */
@media (min-width: 768px) {
    .top-bar .welcome {
        display: block;
    }
    
    .banner-slide {
        min-height: 400px;
        padding: 60px 40px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-text,
    .about-image {
        flex: 1;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-item a {
        flex-direction: row;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-info {
        flex: 2;
    }
    
    .footer-nav {
        flex: 1;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* 桌面端适配 */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
    }
    
    .main-nav ul {
        flex-direction: row;
    }
    
    .main-nav ul li {
        border-bottom: none;
    }
    
    .main-nav ul li a {
        padding: 10px 18px;
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background: transparent;
        color: #1a5fb4;
    }
    
    .banner-slide {
        min-height: 500px;
    }
    
    .banner-content h2 {
        font-size: 42px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header .en-title {
        font-size: 32px;
    }
    
    .section-header .cn-title {
        font-size: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-icon {
        height: 150px;
        font-size: 56px;
    }
    
    .stat-item .number {
        font-size: 48px;
    }
    
    .news-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .news-item {
        flex: 1;
        min-width: calc(33.333% - 14px);
    }
    
    .news-item a {
        flex-direction: column;
    }
    
    .page-banner {
        padding: 80px 0;
    }
    
    .page-banner h2 {
        font-size: 36px;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a5fb4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0d3a7a;
    transform: translateY(-3px);
}
