/* ClashMac Website Styles */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

:root {
    --color-bg: #000;
    --color-text: #fff;
    --color-text-secondary: #888;
    --color-border: #333;
    --color-accent: #F5A623;
    --color-accent-hover: #FFB84D;
    --font-display: 'Clash Display', -apple-system, sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-icon {
    display: flex;
    align-items: center;
    padding: 6px;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.lang-option,
.nav-links .lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 2px 4px;
    font-size: 11px !important;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.lang-option:not(.active):hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Animated glow orb */
.hero::before {
    content: '';
    position: absolute;
    bottom: -700px;
    left: 50%;
    transform: translateX(-50%);
    width: 2000px;
    height: 1400px;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.6) 0%, rgba(245, 166, 35, 0.25) 35%, transparent 65%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

/* Grid overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* 小网格 */
        repeating-linear-gradient(0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.02) 19px,
            rgba(255, 255, 255, 0.02) 20px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.02) 19px,
            rgba(255, 255, 255, 0.02) 20px),
        /* 大网格 */
        repeating-linear-gradient(0deg,
            transparent,
            transparent 79px,
            rgba(255, 255, 255, 0.04) 79px,
            rgba(255, 255, 255, 0.04) 80px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 79px,
            rgba(255, 255, 255, 0.04) 79px,
            rgba(255, 255, 255, 0.04) 80px);
    -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.2) 100%);
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.6s ease-out both;
}

.hero-slogan {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    white-space: nowrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    margin-left: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.cta-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s both, float 6s ease-in-out 1s infinite;
}

.hero-image img {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(245, 166, 35, 0.25);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(245, 166, 35, 0.1);
    transition: box-shadow 0.4s, border-color 0.4s;
}

.hero-image:hover {
    animation-play-state: paused;
}

.hero-image:hover img {
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(245, 166, 35, 0.15);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    max-width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.6), transparent);
    z-index: 2;
    border-radius: 12px 12px 0 0;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Placeholder Image */
.placeholder-img {
    background: var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Features Overview */
.features-overview {
    background: #0a0a0a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(15, 15, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 166, 35, 0.25);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(245, 166, 35, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.05));
    border: none;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-accent);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Feature Detail Section */
.feature-detail {
    border-bottom: 1px solid var(--color-border);
}

.feature-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-detail:nth-child(odd) .feature-detail-content {
    order: 1;
}

.feature-detail:nth-child(odd) .feature-detail-image {
    order: 2;
}

.feature-detail:nth-child(even) .feature-detail-content {
    order: 2;
}

.feature-detail:nth-child(even) .feature-detail-image {
    order: 1;
}

.feature-detail-image {
    position: relative;
}

.feature-detail-image img {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(245, 166, 35, 0.25);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(245, 166, 35, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
}

.feature-detail-image:hover img {
    transform: translateY(-4px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(245, 166, 35, 0.12);
}

.feature-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.6), transparent);
    z-index: 2;
    border-radius: 12px 12px 0 0;
}

.feature-detail-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.feature-detail h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.feature-detail-list {
    list-style: none;
}

.feature-detail-list li {
    padding: 8px 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-detail-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* More Features */
.more-features {
    background: #0a0a0a;
}

.more-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 48px;
    margin-top: 48px;
}

.more-feature-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-feature-item h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
}

.more-feature-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Download */
.download {
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    bottom: -700px;
    left: 50%;
    transform: translateX(-50%);
    width: 2000px;
    height: 1400px;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.6) 0%, rgba(245, 166, 35, 0.25) 35%, transparent 65%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.download .section-title,
.download .section-subtitle,
.download-cta,
.download-info {
    position: relative;
    z-index: 1;
}

.download .section-subtitle {
    margin: 0 auto 32px;
}

.download-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    z-index: 100;
}

.download-dropdown.active .download-dropdown-content {
    display: block;
}

.download-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.download-dropdown-content a:hover {
    background: #333;
}

.download-dropdown-content a span {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.download-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.download-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.download-info-item {
    text-align: center;
}

.download-info-item span {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.download-info-item strong {
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

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

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-logo span {
        display: none;
    }

    .nav-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero .container,
    .feature-detail .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-slogan {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .more-features-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail:nth-child(odd) .feature-detail-content,
    .feature-detail:nth-child(odd) .feature-detail-image,
    .feature-detail:nth-child(even) .feature-detail-content,
    .feature-detail:nth-child(even) .feature-detail-image {
        order: unset;
    }

    .download-info {
        flex-direction: column;
        gap: 24px;
    }

    .footer .container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links>li:nth-child(-n+3) a:not(.nav-icon) {
        font-size: 12px;
    }

    .hero-slogan {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .feature-detail h2 {
        font-size: 28px;
    }
}