/* ============================================================
   阳明国际 - Yangming International Development Limited  
   Modern Blue Gradient Business Style
   ============================================================ */

/* ========== Reset & Global Variables ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Color Palette - matching logo blue gradient */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    
    /* Background - light gradient */
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --card-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
    
    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-on-blue: #ffffff;
    
    /* Borders */
    --border-light: #e2e8f0;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", 
                 "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(37, 99, 235, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

/* Blue gradient logo icon */
.nav-logo-img {
    width: auto;
    height: 65px;
    object-fit: contain;
    display: block;
}

/* Hero center logo styling */
.hero-center-logo {
    position: absolute;
    width: 220px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.3));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

/* ========== Hero Section - Blue gradient background ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    position: relative;
}

/* Circular decorative elements like the logo */
.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--blue-700);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Blue gradient button */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #2563eb;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.04);
}

/* Hero visual - circular graphic */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-graphic {
    width: 350px;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid var(--blue-200);
    animation: spin 15s linear infinite;
}

.hero-ring:nth-child(1) { width: 280px; height: 280px; border-style: dashed; opacity: 0.6; }
.hero-ring:nth-child(2) { width: 230px; height: 230px; animation-direction: reverse; animation-duration: 20s; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-center {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
}

/* ========== Stats Bar - Blue gradient ========== */
.stats-bar {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    padding: 48px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-around;
}

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

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--blue-100);
}

/* ========== Business Section - White cards on light bg ========== */
.business, .advantages, .contact {
    background: white;
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: #2563eb;
    letter-spacing: 2px;
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.business-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* White cards with subtle shadow */
.business-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.business-card:hover::before {
    transform: scaleX(1);
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.business-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.business-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.business-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========== Advantages Section - Gradient bg ========== */
.advantages {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantage-card {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 40px 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
}

.advantage-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

/* ========== Vision Section ========== */
.vision {
    background: white;
    padding: 120px 0;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vision-quote {
    font-size: 1.6rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 40px;
    position: relative;
    padding-top: 40px;
}

.vision-quote::before {
    content: """;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--blue-200);
}

.vision-partners {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.partner-item {
    padding: 12px 24px;
    background: var(--blue-50);
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== News Section ========== */
.news {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.news-card-image {
    height: 180px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-card-body { padding: 24px; }

.news-tag {
    display: inline-block;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.news-card-body h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.news-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-date {
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 600;
}

/* ========== Contact Section ========== */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 80px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-brand p { color: var(--blue-200); }

.footer-col h4 { margin-bottom: 20px; }

.footer-col a {
    display: block;
    color: var(--blue-200);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-col a:hover { color: white; }

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

.footer-bottom p { color: var(--blue-200); }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.scroll-top.visible { opacity: 1; }

/* Responsive */

/* Fix overlapping on very narrow screens */
@media (max-width: 380px) {
    .hero-text h1 { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.35rem; }
    .nav-logo-img { height: 40px; }
}

/* Ensure all containers don't overflow */
@media (max-width: 768px) {
    * { overflow-x: hidden !important; }
    
    /* Nav bar - proper mobile layout */
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    /* Force nav links to be hidden until toggled */
    .nav-links {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex !important;
    }
    
    /* Make sure hero graphic doesn't overflow */
    .hero-graphic {
        width: 240px !important;
        height: 240px !important;
    }
    
    .hero-ring:nth-child(1) { width: 180px !important; height: 180px !important; }
    .hero-ring:nth-child(2) { width: 150px !important; height: 150px !important; }
    
    /* Ensure all sections have proper padding */
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }
    
    /* Footer columns stack vertically */
    .footer-container > div { min-width: 0; }
}

/* responsive */@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; }
    .business-grid,
    .advantages-grid,
    .news-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}


/* ==================== RESPONSIVE / MOBILE STYLES ==================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    /* Nav: collapse links, show hamburger */
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    .mobile-toggle span {
        width: 24px;
        height: 3px;
        background: #1e293b;
        border-radius: 2px;
    }
    
    /* Nav logo larger on mobile */
    .nav-container {
        padding: 0 16px;
        height: 64px;
    }
    
    .nav-logo-img {
        height: 50px;
    }
    
    /* Hero section on mobile */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 0 16px;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-primary, .btn-outline {
        width: 80%;
        max-width: 300px;
        text-align: center;
        padding: 14px 24px;
    }
    
    .hero-graphic {
        width: 260px;
        height: 260px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-ring:nth-child(1) { width: 200px; height: 200px; }
    .hero-ring:nth-child(2) { width: 165px; height: 165px; }
    
    .hero-center-logo {
        width: 130px !important;
    }
    
    /* Stats bar */
    .stats-bar {
        padding: 36px 0;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding: 0 16px;
    }
    
    .stat-item { text-align: center; }
    
    .stat-number { font-size: 2.2rem; }
    
    /* Sections */
    .section { padding: 60px 0; }
    
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }
    
    /* Business cards - single column */
    .business-grid,
    .advantages-grid,
    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }
    
    .section-container { padding: 0 16px; }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form { padding: 24px; }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px;
    }
    
    .footer-brand h3 { font-size: 1.1rem; }
    
    .footer-bottom { margin-top: 40px; padding: 20px 0; }
    
    /* Vision */
    .vision-quote { font-size: 1.2rem; padding-top: 30px; }
    .vision-partners { gap: 16px; flex-wrap: wrap; }
    
    /* Nav links mobile overlay */
    #navLinks {
        display: none;
    }
    
    #navLinks.open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }
    
    .nav-links.open a {
        font-size: 1.3rem;
        padding: 12px 0;
    }
    
    .nav-lang { display: none; }
}

/* Small phone (480px) */
@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header { margin-bottom: 40px; }
    
    .nav-logo-img { height: 44px; }
    
    .business-card,
    .advantage-card,
    .news-card {
        padding: 24px 20px;
    }
}

/* existing responsive */