/* 
 * 新葡京官网样式
 * 移动端优先设计 - Mobile First
 * 适配Yandex和Bing SEO标准
 */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5fb4;
    --primary-dark: #0d3a7a;
    --secondary-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-gray: #eef1f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

ul, ol {
    list-style: none;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
    padding: 20px;
}

.main-nav.active {
    transform: translateX(0);
}

.nav-list {
    display: flex;
    flex-direction: column;
}

.nav-item {
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Banner */
.hero {
    margin-top: 64px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 15px;
    text-align: center;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Common Styles */
.section {
    padding: 50px 0;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

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

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--white);
    font-size: 1.25rem;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 0;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-number span {
    font-size: 1rem;
    font-weight: 400;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* News Section */
.news-section {
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    opacity: 0.8;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--secondary-color);
}

/* Partners Section */
.partners-section {
    background: var(--white);
    padding: 40px 0;
}

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

.partner-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.partner-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
    color: var(--white);
    text-align: center;
    padding: 50px 15px;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Page Header for Inner Pages */
.page-header {
    margin-top: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 15px;
    text-align: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

/* Content Page */
.content-section {
    padding: 40px 0;
}

.content-box {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: var(--shadow);
}

.content-box h2 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.content-box h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

.content-box p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.content-box ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-box li {
    margin-bottom: 8px;
    line-height: 1.7;
    position: relative;
    padding-left: 15px;
}

.content-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-light);
    padding: 25px 20px;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* News Detail Page */
.news-detail {
    padding: 30px 0;
}

.news-detail-header {
    margin-bottom: 25px;
}

.news-detail-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-detail-content {
    line-height: 1.9;
}

.news-detail-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.news-nav {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-nav a {
    display: block;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .header-inner {
        padding: 15px 30px;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .main-nav {
        position: static;
        transform: none;
        background: transparent;
        padding: 0;
        overflow: visible;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 5px;
    }
    
    .nav-item {
        border: none;
    }
    
    .nav-link {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 80px 30px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-header {
        padding: 60px 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-box {
        padding: 35px 30px;
    }
    
    .news-detail-title {
        font-size: 1.75rem;
    }
    
    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .news-nav a {
        flex: 1;
        max-width: 48%;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content {
        padding: 120px 40px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-features {
        flex: 1;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .cta-section {
        padding: 70px 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-content {
        padding: 140px 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .back-to-top,
    .cta-section {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        background: none;
        color: var(--text-color);
    }
    
    body {
        font-size: 12pt;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
