/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}


:root {
    --primary-blue: #0066ff;
    --dark-blue: #0047b3;
    --light-gray: #f8f9fa;
    --text-dark: #2d3748;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
}

.download-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 15px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.download-notification.show {
    top: 100px;
    opacity: 1;
}

/* 功能特性区块样式 */
.features-section {
    padding: 5rem 0 10rem 0;
    background: var(--light-gray);
}
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}
.feature-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-section {
    padding: 3rem 0 10rem 0;
}

.download-grid-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card:hover,
.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

/* 下载卡片样式 */
.download-card {
    background: white;
    padding: 2rem 1.5rem 3.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
}

.download-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.download-button:hover {
    background: var(--dark-blue);
}

.system-requirements {
    margin: 1rem 0;
    text-align: left;
    font-size: 0.9rem;
}

.version-info {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.update-time {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.os-requirements {
    color: #4a5568;
    line-height: 1.5;
}

@media (max-width: 1440px) {
    .section-container {
        max-width: 90%;
        padding: 0 1.5rem;
    }
    .feature-grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    .download-grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    .nav-links {
        gap: 1.5rem;
    }
}

/* 大屏优化 */
@media (min-width: 1440px) {
    .browser-showcase-section {
        min-height: 700px;
    }
    .feature-grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    .download-grid-layout {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    .section-container {
        max-width: 1400px;
    }
}
/* 中等屏幕适配 */
@media (max-width: 1200px) {

    .browser-showcase-section {
        min-height: 500px !important;
    }
}

/* 中等屏幕适配 */
@media (max-width: 1024px) {
    .banner-section h1 {
        font-size: 2.5rem;
    }
    .feature-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .download-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.8;
}

.main-nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}
.hamburger-menu {
    display: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 32px;
}

.logo-text {
    font-family: 'Inter', system-ui;
    font-weight: 600;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #0066ff 0%, #00c3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
    text-decoration: none;
}


.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.download-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: var(--dark-blue);
}

.banner-section {
    padding-top: 10rem;
    min-height: 600px;
    /*background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);*/
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%), url('../images/topbanner-bg.png') center/cover no-repeat;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #f0f4ff 100%);
    
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.banner-section h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.banner-section p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-cta {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-cta {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.secondary-cta:hover {
    background: var(--primary-blue);
    color: white;
}

/*浏览器图片*/
.browser-showcase-section {
    padding: 5rem 0;
    min-height: 600px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%),
                linear-gradient(to bottom, #f0f4ff, #ffffff);
    background-size: 100% 100%, 100% 30px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 100%;
}

.browser-showcase-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.showcase-text {
    flex: 1;
    align-self: flex-start;
    padding-top: 2rem;
}

.showcase-text p {
    font-size: 1.1rem;
}

.showcase-image {
    flex: 1;
}

.showcase-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* 页脚样式 */
.footer-section {
    background: var(--light-gray);
    padding: 3rem 0;
    color: var(--text-dark);
}

.footer-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-seo-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.footer-seo-links a:hover {
    color: var(--primary-blue);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.footer-info {
    max-width: 60%;
    line-height: 1.8;
    gap: 1rem;
    font-size: 0.9rem;
}

.footer-info p:first-child {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    text-align: right;
    align-items: flex-end;

    p {
        display: flex;
        gap: 1.5rem;
    }
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}
.mobile-menu-container{
    display: none;
}
@media (max-width: 1440px) {
    .section-container {
        max-width: 90%;
        padding: 0 1.5rem;
    }
    .feature-grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    .download-grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
    .nav-links {
        gap: 1.5rem;
    }
}

/* 大屏优化 */
@media (min-width: 1440px) {
    .browser-showcase-section {
        min-height: 600px;
    }
    .feature-grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    .download-grid-layout {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    .section-container {
        max-width: 1400px;
    }
}

/* 中等屏幕适配 */
@media (max-width: 1024px) {
    .banner-section h1 {
        font-size: 2.5rem;
    }
    .browser-showcase-section {
        min-height: 400px;
    }
    .features-section {
        padding: 4rem 0 6rem 0;
    }

    .download-section {
        padding: 2rem 0 6rem 0;
    }
    
    .feature-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .download-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .footer-columns{
        display: block;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .browser-showcase-section {
        min-height: 400px;
        padding: 2rem 0 4rem 0;
    }
    .p-t-3rem{
        padding-top: 3rem;
    }
    .section-title{
        margin-bottom: 2rem;
    }
    .nav-container {
        padding: 1rem;
        position: relative;
    }

    .nav-links {
        display: none;
    }
    
    .features-section {
        padding: 4rem 0 5rem 0;
    }

    .download-section {
        padding: 2rem 0 5rem 0;
    }
    
    .download-card {
        min-height: 280px;
    }

    .system-requirements {
        font-size: 0.8rem;
    }
    .banner-section::after {
        height: 50px !important;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 28px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background: var(--text-dark);
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hamburger-menu.active span:nth-child(4) {
        opacity: 0;
    }

    .mobile-menu-container {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        box-shadow: -4px 0 16px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 2rem 2rem;
    }

    .mobile-menu-container.active {
        right: 0;
    }

    .mobile-menu-container {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        padding: 80px 2rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu-container.show {
        transform: translateX(0);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        border-radius: 8px;
        background: rgba(0, 102, 255, 0.05);
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        margin: 0.25rem 0;
    }

    .mobile-menu a:hover {
        color: var(--primary-blue);
    }

    .menu-close-btn {
        position: absolute;
        top: 0.8rem;
        left: 1rem;
        background: none;
        border: none;
        font-size: 3rem;
        color: var(--text-dark);
        cursor: pointer;
    }

    .no-scroll {
        overflow: hidden;
    }

    .banner-section h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .feature-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .download-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .footer-seo-links {
        display: none;
    }

    .footer-columns {
        display: inline;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-info {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
        align-items: center;
        
        p {
            flex-direction: column;
            gap: 0.5rem;
        }
    }
    .m-d-none {
        display: none !important;
    }
    .d-center{
        text-align: center !important;
    }

    .browser-showcase-grid {
        flex-direction: column;
        gap: 2rem;
    }
}


@media (max-width: 480px) {
    .primary-cta,
    .secondary-cta {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .download-button {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.2;
    }
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .feature-grid-layout {
        gap: 1rem;
    }
    .banner-section::after {
        height: 10 !important;
    }
}

.architecture-menu {
    position: absolute;
    top: calc(100% - 50px);
    left: 0;
    right: 0;
    background: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none; /* 默认隐藏 */
}

.architecture-menu.active {
    opacity: 1;
    transform: translateY(0);
    display: block; /* 激活时显示 */
}

.arch-option {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    transition: background 0.2s ease;
}

.arch-option:hover {
    background: #f8f9fc;
}

.architecture-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
}
@media (max-width: 768px) {
    .architecture-menu {
        width: 100%;
    }
    
    .architecture-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
    }
}


/* Mac popup */
.mac-modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mac-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 852px;
    width: 90%;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    /* 移除 relative 定位 */
    margin: auto; /* 新增自适应外边距 */
    /* 保留原有动画效果 */
    animation: fadeInScale 0.25s; 
    position: relative; /* 新增相对定位 */
    top: 50%; /* 新增垂直定位 */
    transform: translateY(-50%); /* 新增垂直居中修正 */
}
/* 保持原有动画 */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-50%); }
    to { opacity: 1; transform: scale(1) translateY(-50%); }
}
.mac-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.mac-modal-close:hover { color: #0066ff; }
.mac-modal-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 28px;
    font-weight: 600;
}
.mac-modal-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}
.mac-modal-btn {
    background: #0066ff;
    color: #fff;
    border-radius: 8px;
    padding: 0.9rem 2.2rem;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,102,255,0.08);
}
.mac-modal-btn:hover {
    background: #0047b3;
    color: #fff;
}
.mac-modal-desc {
    border-radius: 10px;
}
.mac-modal-steps {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.mac-modal-step {
    flex: 1 1 0;
    min-width: 120px;
}
@media (max-width: 600px) {
    .mac-modal { padding: 18px 6px 12px 6px; }
    .mac-modal-btns { flex-direction: column; gap: 12px;}
    .mac-modal-steps { flex-direction: column; gap: 8px;}
}

#update-log-toggle {
    color: #2563eb;
    user-select: none;
    transition: color 0.2s;
}
#update-log-toggle:hover {
    color: #0047b3;
}
#update-log-arrow{
	font-size: 15px;
}