:root {
    /* 浅色模式 (Light Theme) */
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-sub: #475569;
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --btn-bg: rgba(15, 23, 42, 0.05);
    --btn-text: #0f172a;
    --btn-border: rgba(15, 23, 42, 0.12);
    --cta-bg: #0f172a;
    --cta-text: #ffffff;
}

[data-theme="dark"] {
    /* 深色模式 (Dark Theme) */
    --bg-main: #0b0c10;
    --text-main: #ffffff;
    --text-sub: #94a3b8;
    --card-bg: #131419;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-text: rgba(255, 255, 255, 0.9);
    --btn-border: rgba(255, 255, 255, 0.15);
    --cta-bg: #ffffff;
    --cta-text: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 顶部 Navigation */
header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 图标与常规按钮 */
.icon-btn, .lang-switch-btn, .nav-btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.lang-switch-btn {
    padding: 8px 14px;
}

.nav-btn {
    padding: 8px 16px;
    font-weight: 600;
}

.icon-btn:hover, .lang-switch-btn:hover, .nav-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ---------------- Hero 首屏区域 ---------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 100px 20px 40px 20px;
}

/* 子页面的通用顶部间距 */
.page-hero {
    min-height: 40vh;
    padding-top: 140px;
    text-align: center;
}

.hero-center {
    text-align: center;
    z-index: 5;
    max-width: 680px;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: var(--text-main);
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(135deg, #d946ef 0%, #ff007a 40%, #ff7a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    color: var(--text-sub);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto 32px auto;
    font-weight: 500;
    max-width: 520px;
    text-wrap: balance;
    text-wrap: pretty;
}

.cta-btn {
    display: inline-block;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.03);
}

/* 桌面端卡片容器 */
.card-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    opacity: 0;
    transform: scale(0.6) rotate(var(--rot));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
    pointer-events: auto;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card.pop-in {
    opacity: 0.9;
    transform: scale(1) rotate(var(--rot));
}

.floating-card:hover {
    opacity: 1;
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 8;
}

/* 桌面端 10 张散落卡片位置 */
.card-1  { top: 10%; left: 8%;   --rot: -8deg;  width: 180px; height: 180px; }
.card-2  { top: 12%; left: 30%;  --rot: 4deg;   width: 150px; height: 150px; }
.card-3  { top: 6%;  right: 28%; --rot: -5deg;  width: 170px; height: 170px; }
.card-4  { top: 8%;  right: 8%;  --rot: 6deg;   width: 190px; height: 190px; }
.card-5  { top: 40%; left: 5%;   --rot: 7deg;   width: 160px; height: 160px; }
.card-6  { top: 42%; right: 6%;  --rot: -7deg;  width: 170px; height: 170px; }
.card-7  { bottom: 12%; left: 10%; --rot: -4deg; width: 190px; height: 190px; }
.card-8  { bottom: 8%;  left: 32%; --rot: 6deg;  width: 150px; height: 150px; }
.card-9  { bottom: 6%;  right: 30%;--rot: -6deg; width: 180px; height: 180px; }
.card-10 { bottom: 10%; right: 8%; --rot: 5deg;  width: 160px; height: 160px; }

/* ---------------- Services 服务网格区域 ---------------- */
.services-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 120px 24px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: var(--card-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), var(--glow-color, rgba(0, 0, 0, 0.05)), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--border-color, rgba(0, 0, 0, 0.2));
    transform: translateY(-2px);
}

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

.service-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 24px;
    stroke-width: 2;
    transition: transform 0.2s;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* 色彩系统 */
.card-events { --glow-color: rgba(255, 0, 122, 0.15); --border-color: #ff007a; }
.card-events .service-icon { color: #ff007a; }

.card-audio { --glow-color: rgba(255, 122, 0, 0.15); --border-color: #ff7a00; }
.card-audio .service-icon { color: #ff7a00; }

.card-web { --glow-color: rgba(59, 130, 246, 0.15); --border-color: #3b82f6; }
.card-web .service-icon { color: #3b82f6; }

.card-design { --glow-color: rgba(217, 70, 239, 0.15); --border-color: #d946ef; }
.card-design .service-icon { color: #d946ef; }

.card-media { --glow-color: rgba(16, 185, 129, 0.15); --border-color: #10b981; }
.card-media .service-icon { color: #10b981; }

.card-system { --glow-color: rgba(139, 92, 246, 0.15); --border-color: #8b5cf6; }
.card-system .service-icon { color: #8b5cf6; }

.card-stage { --glow-color: rgba(245, 158, 11, 0.15); --border-color: #f59e0b; }
.card-stage .service-icon { color: #f59e0b; }

.card-ecom { --glow-color: rgba(6, 182, 212, 0.15); --border-color: #06b6d4; }
.card-ecom .service-icon { color: #06b6d4; }

/* ---------------- 详情页内容区域 ---------------- */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 100px 24px;
    line-height: 1.8;
    color: var(--text-sub);
}

.content-section h2 {
    color: var(--text-main);
    margin: 40px 0 20px 0;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- 📱 移动端与 Pro Max 适配 ---------------- */
@media (max-width: 768px) {
    header { top: 16px; left: 16px; right: 16px; }
    
    .hero-section {
        padding-top: calc(75px + 2vh);
        padding-bottom: calc(20px + 2vh);
        justify-content: space-around;
    }

    .hero-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: clamp(10px, 2.5vh, 35px) 0;
    }

    .hero-title { 
        font-size: clamp(2.4rem, 8vw, 3.2rem); 
        line-height: 1.12;
        margin-bottom: clamp(12px, 2vh, 24px);
    }
    
    .hero-sub { 
        font-size: clamp(0.85rem, 3.5vw, 0.98rem); 
        margin-bottom: clamp(20px, 3vh, 36px);
        padding: 0 12px;
        max-width: 90%;
    }

    .card-container {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: clamp(10px, 3.5vh, 50px);
        margin-bottom: clamp(10px, 2vh, 30px);
        pointer-events: auto;
    }

    .floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: clamp(105px, 27vw, 135px) !important;
        height: clamp(105px, 27vw, 135px) !important;
        border-radius: 18px;
        margin-left: clamp(-36px, -8vw, -24px); 
    }

    .card-1 { margin-left: 0; --rot: -8deg; z-index: 1; }
    .card-4 { --rot: -3deg; z-index: 2; }
    .card-7 { --rot: 4deg; z-index: 3; }
    .card-10 { --rot: 9deg; z-index: 4; }

    .card-2, .card-3, .card-5, .card-6, .card-8, .card-9 { display: none !important; }

    .services-section { padding: 40px 16px 80px 16px; }
    .section-title { font-size: 1.4rem; margin-bottom: 20px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-card { padding: 20px 16px; min-height: 120px; border-radius: 12px; }
    .service-icon { width: 24px; height: 24px; margin-bottom: 16px; }
    .service-name { font-size: 0.9rem; }
}
