/* 
 * 澳门新葡京 - 主样式表
 * Mobile First Design - 移动端优先
 * Yandex & Bing SEO Optimized
 */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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: #333;
    background-color: #fff;
    min-height: 100vh;
}

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

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

/* ============================================
   Layout Container
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 1.75rem;
    color: #1a5f7a;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a5f7a, #57c5b6);
}

.section-title p {
    color: #666;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #1a5f7a;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.header-top a {
    color: #fff;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5f7a;
}

.logo span {
    color: #57c5b6;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a5f7a;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

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

.nav-menu ul {
    padding: 10px 0;
}

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

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a5f7a;
    background: #f5f5f5;
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #57c5b6 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: #fff;
    color: #1a5f7a;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    color: #1a5f7a;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: #f8f9fa;
}

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

.feature-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5f7a, #57c5b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #fff;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a5f7a;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h3 {
    font-size: 1.3rem;
    color: #1a5f7a;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a5f7a;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: #fff;
}

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

.service-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-image {
    height: 180px;
    background: linear-gradient(135deg, #1a5f7a, #57c5b6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    font-size: 1.1rem;
    color: #1a5f7a;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.service-link {
    color: #1a5f7a;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link:hover {
    color: #57c5b6;
}

/* ============================================
   News Section
   ============================================ */
.news {
    background: #f8f9fa;
}

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

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

.news-card:hover {
    transform: translateY(-3px);
}

.news-image {
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
}

.news-content h3 a:hover {
    color: #1a5f7a;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1a5f7a;
    color: #fff;
}

.btn-primary:hover {
    background: #154d63;
    color: #fff;
}

.btn-outline {
    border: 2px solid #1a5f7a;
    color: #1a5f7a;
    background: transparent;
}

.btn-outline:hover {
    background: #1a5f7a;
    color: #fff;
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    background: #fff;
}

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

.partner-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

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

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: linear-gradient(135deg, #1a5f7a 0%, #57c5b6 100%);
    color: #fff;
}

.contact .section-title h2 {
    color: #fff;
}

.contact .section-title h2::after {
    background: #fff;
}

.contact .section-title p {
    color: rgba(255,255,255,0.8);
}

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

.contact-info {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.contact-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
}

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

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

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

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

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

.form-submit {
    width: 100%;
    padding: 12px;
    background: #1a5f7a;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #154d63;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a2a3a;
    color: #ccc;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #57c5b6;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #57c5b6;
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #57c5b6;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #1a5f7a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
    border: none;
}

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

.back-to-top:hover {
    background: #57c5b6;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, #1a5f7a 0%, #57c5b6 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 10px;
}

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

.breadcrumb a {
    color: #fff;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   Content Pages
   ============================================ */
.page-content {
    padding: 40px 0;
}

.content-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.content-box h2 {
    font-size: 1.3rem;
    color: #1a5f7a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.content-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 20px 0 10px;
}

.content-box p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

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

.content-box ul li {
    margin-bottom: 8px;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.content-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a5f7a;
}

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

.news-detail-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.news-detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

.news-detail-body {
    line-height: 1.9;
    color: #555;
}

.news-detail-body p {
    margin-bottom: 18px;
}

.news-detail-body h2 {
    font-size: 1.2rem;
    color: #1a5f7a;
    margin: 25px 0 15px;
}

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

.news-nav a {
    color: #666;
    font-size: 0.9rem;
}

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

/* ============================================
   News List Page
   ============================================ */
.news-list {
    padding: 40px 0;
}

.news-list-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.news-list-item:hover {
    transform: translateY(-3px);
}

.news-list-item h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-list-item h2 a {
    color: #333;
}

.news-list-item h2 a:hover {
    color: #1a5f7a;
}

.news-list-item .news-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.news-list-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: block;
        position: static;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-menu ul {
        display: flex;
        padding: 0;
    }
    
    .nav-menu li {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 10px 15px;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: transparent;
        color: #1a5f7a;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .news-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer,
    .back-to-top,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
