/* ===================================
   xinghuo-windsurf 官网样式
   高端极简风格 - 模仿 trumpcard.gov
   =================================== */

/* --- 全局变量 --- */
:root {
    /* 背景色 - 纯白基调，模仿 trumpcard.gov */
    --bg-body: #FFFFFF;
    --bg-section-alt: #FAFAFA;

    /* 主色调 - 纯黑 + 金色点缀 */
    --primary: #000000;
    --primary-hover: #1A1A1A;
    --primary-light: rgba(0, 0, 0, 0.04);
    --accent-color: #C5A55A;
    --accent-hover: #B8963E;

    /* 卡片与边框 */
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);

    /* 文字色 */
    --text-main: #000000;
    --text-muted: #888888;
    --text-light: #555555;

    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    /* 阴影 */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.08);

    /* 字体 - 衬线标题 + 无衬线正文（中英文分别优化） */
    --font-heading: 'Playfair Display', 'Noto Serif SC', '思源宋体', Georgia, serif;
    --font-body: 'Inter', 'Noto Sans SC', '思源黑体', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- 基础重置 --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

/* --- 容器 --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.nav-link {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link-primary {
    background: var(--primary);
    color: white !important;
}

.nav-link-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- 英雄区域 --- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-particles {
    display: none;
}

/* Hero 左右分栏布局 */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

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

.hero-visual {
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    /* 响应式字号：模仿目标网站的超大标题 */
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1.5px;
    color: var(--text-main);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.gradient-text {
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
    background: none;
}

.hero-description {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

/* --- 按钮样式 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.2px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* 金色按钮 */
.btn-gold {
    background: var(--accent-color);
    color: var(--primary);
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* --- 统计数据 --- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

/* --- 英雄视觉区域 --- */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-mockup {
    position: relative;
    z-index: 2;
}

.mockup-frame {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--card-border);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 60px;
}

.mockup-content {
    padding: 8px;
}

.mockup-image {
    width: 100%;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 300px;
    object-fit: contain;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- 浮动卡片（隐藏，极简设计不需要） --- */
.hero-floating-cards {
    display: none;
}

.floating-card {
    display: none;
}

.floating-card .card-icon {
    font-size: 20px;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

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

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

/* --- 滚动指示器 --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: scrollBounce 2s infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheelMove 2s infinite;
}

@keyframes scrollWheelMove {

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

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(6px);
    }
}

@keyframes scrollBounce {

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

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

.hero-scroll-indicator span {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- 区块标题 --- */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: 0;
    line-height: 1.15;
    word-break: keep-all;
}

.section-description {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- 功能特性区域 --- */
.features {
    padding: 160px 0;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.feature-card-highlight {
    background: var(--card-bg);
    border-color: var(--accent-color);
    border-width: 1.5px;
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--text-main);
}

/* 统一图标色 */
.feature-icon-green {
    background: rgba(26, 26, 26, 0.04);
}

.feature-icon-green .feature-icon {
    color: var(--text-main);
}

.feature-icon-purple {
    background: rgba(26, 26, 26, 0.04);
}

.feature-icon-purple .feature-icon {
    color: var(--text-main);
}

.feature-icon-orange {
    background: rgba(26, 26, 26, 0.04);
}

.feature-icon-orange .feature-icon {
    color: var(--text-main);
}

.feature-icon-gradient {
    background: var(--accent-color);
}

.feature-icon-gradient .feature-icon {
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: 0;
}

.feature-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.feature-list {
    margin-top: 16px;
}

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.feature-list-highlight li::before {
    background: var(--accent-color);
}

/* --- 界面预览区域 --- */
.preview {
    padding: 160px 0;
    background: var(--bg-section-alt);
}

.preview-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.preview-tab {
    padding: 12px 28px;
    border: 1px solid var(--card-border);
    background: transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-tab:hover {
    background: var(--card-bg);
    color: var(--text-main);
}

.preview-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.preview-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.preview-panel.active {
    display: block;
}

.preview-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.preview-image-wrapper {
    padding: 24px 24px 0;
}

.preview-image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    min-height: 400px;
    object-fit: contain;
}

.preview-info {
    padding: 24px 32px;
    background: white;
}

.preview-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.preview-info p {
    font-size: 15px;
    color: var(--text-light);
}

/* --- 使用教程区域 --- */
.tutorial {
    padding: 160px 0;
}

.tutorial-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.tutorial-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--card-border);
}

.tutorial-step {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.step-number span {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.step-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.step-time {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.platform-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon svg {
    width: 24px;
    height: 24px;
}

.platform-icon.windows {
    background: var(--primary);
    color: white;
}

.platform-icon.mac {
    background: var(--primary);
    color: white;
}

/* 适当放大苹果 Logo，使其与 Windows 视觉大小保持平衡，同时避免过大 */
.platform-icon.mac svg {
    width: 28px;
    height: 28px;
}

.platform-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.platform-info p {
    font-size: 13px;
    color: var(--text-light);
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-list li {
    display: flex;
    gap: 12px;
}

.list-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.list-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.list-content p {
    font-size: 14px;
    color: var(--text-light);
}

.list-content code {
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}

/* --- 为什么选择区域 --- */
.why-choose {
    padding: 160px 0;
    background: var(--bg-section-alt);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-choose-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.why-description {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.why-feature-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.why-feature-text span {
    font-size: 14px;
    color: var(--text-light);
}

.stats-card {
    display: flex;
    justify-content: center;
}

.stats-ring {
    position: relative;
    width: 200px;
    height: 200px;
}

.stats-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stats-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stats-percent {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -2px;
}

.stats-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- 下载区域 --- */
.download {
    padding: 160px 0;
}

.download-card {
    position: relative;
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 100px 40px;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.download-content>p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 36px;
    background: white;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.download-btn svg {
    width: 32px;
    height: 32px;
}

.download-btn-windows svg {
    color: var(--text-main);
}

.download-btn-mac svg {
    color: var(--text-main);
}

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

.download-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.download-os {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

/* 插件下载按钮 */
.plugin-download {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.download-btn-plugin {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 14px 32px !important;
}

.download-btn-plugin:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.download-btn-plugin svg {
    width: 24px !important;
    height: 24px !important;
    color: white;
}

.download-btn-plugin .download-label {
    color: rgba(255, 255, 255, 0.8);
}

.download-btn-plugin .download-os {
    color: white;
    font-size: 15px;
}

.download-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.download-note svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- 页脚 --- */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

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

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- 动画 --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* --- 响应式设计 --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .feature-card-large {
        grid-column: span 2;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .why-choose-content {
        text-align: center;
    }

    .why-choose-content .section-title {
        text-align: center;
    }

    .why-features {
        align-items: center;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 40px);
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    /* 移动端统计数字区域适配 */
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-divider {
        height: 30px;
    }

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

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

    .feature-card-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* 修复移动端预览图片拉伸 */
    .preview-image-wrapper img {
        min-height: auto;
    }

    .mockup-image {
        min-height: auto;
    }

    /* 修复移动端操作指南三卡片布局 */
    .guide-entry-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* --- 联系我们区域 --- */
.contact {
    padding: 160px 0;
    background: var(--bg-section-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary);
    color: white;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contact-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.contact-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-family: monospace;
    margin-bottom: 8px;
}

.contact-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    width: fit-content;
    margin: 0 auto;
}

.contact-qr img {
    display: block;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===================================
   新增区域样式 - 模仿 trumpcard.gov
   =================================== */



/* --- 横向三步流程区域 --- */
.process {
    padding: 160px 0;
    background: var(--primary);
    color: white;
}

.process .section-tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.process .section-title {
    color: white;
}

.process .section-description {
    color: rgba(255, 255, 255, 0.7);
}

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

.process-step {
    position: relative;
    padding: 0 16px;
}

.process-number {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -3px;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.process-step p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* 步骤间连接线 */
.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -24px;
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.process-step:last-child::after {
    display: none;
}

/* --- FAQ 手风琴区域 --- */
.faq {
    padding: 160px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: color 0.3s ease;
    gap: 24px;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 0 28px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- 底部全宽 CTA 区域 --- */
.bottom-cta {
    padding: 120px 0;
    background: var(--primary);
    text-align: center;
}

.bottom-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.bottom-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-cta .btn-gold {
    padding: 20px 48px;
    font-size: 17px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 24px rgba(197, 165, 90, 0.3);
}

.bottom-cta .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(197, 165, 90, 0.4);
}



/* --- 响应式补充 --- */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process-step::after {
        display: none;
    }

    .process-number {
        font-size: 56px;
    }

    .testimonial-quote {
        font-size: 22px;
    }

    .faq-question {
        font-size: 16px;
        padding: 24px 0;
    }

    .bottom-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        max-width: 100%;
    }
}

/* ===== macOS 架构选择弹层 ===== */
/* 主页 macOS 按钮的小提示 */
.download-btn .download-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.2px;
}

.download-btn-mac .download-hint {
    color: rgba(85, 85, 85, 0.85);
}

/* 锁定背景滚动 */
body.modal-open {
    overflow: hidden;
}

/* 弹层根容器 */
.arch-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.arch-modal[hidden] {
    display: none;
}

.arch-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease-out;
}

.arch-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 36px 32px 28px;
    animation: archModalIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes archModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

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

.arch-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.arch-modal-close:hover {
    background: var(--primary-light);
    color: var(--text-main);
}

.arch-modal-close svg {
    width: 18px;
    height: 18px;
}

.arch-modal-header {
    margin-bottom: 20px;
}

.arch-modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.arch-modal-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 22px;
}

.arch-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.arch-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.arch-option:hover {
    border-color: var(--text-main);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.arch-option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.arch-option-text {
    flex: 1;
    min-width: 0;
}

.arch-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.arch-option-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.arch-option-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--accent-color);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* 推荐项高亮 */
.arch-option.arch-option-recommend {
    border-color: var(--accent-color);
    background: rgba(197, 165, 90, 0.08);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.12);
}

.arch-option.arch-option-recommend:hover {
    border-color: var(--accent-hover);
    background: rgba(197, 165, 90, 0.14);
}

.arch-modal-foot {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    padding-top: 14px;
    border-top: 1px dashed var(--card-border);
}

/* 移动端适配 */
@media (max-width: 520px) {
    .arch-modal-card {
        padding: 28px 22px 22px;
        max-width: 100%;
    }

    .arch-modal-title {
        font-size: 19px;
    }

    .arch-option {
        padding: 14px 16px;
        gap: 12px;
    }

    .arch-option-icon {
        width: 40px;
        height: 40px;
    }

    .arch-option-title {
        font-size: 15px;
    }
}

/* ===================================
   macOS 首次打开提示
   （archModal 内「已损坏」按钮 + 独立 #macosHelpModal 详情弹层）
   =================================== */

/* --- archModal 弹层底部：「下载后打不开」显著入口按钮 --- */
.arch-modal-damaged-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 1px solid #FFD54F;
    border-left: 4px solid #FFB300;
    border-radius: var(--radius-md);
    color: #5D4037;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 179, 0, 0.16);
}

.arch-modal-damaged-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FFECB3 0%, #FFE082 100%);
    box-shadow: 0 8px 22px rgba(255, 152, 0, 0.26);
}

.arch-modal-damaged-btn-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFB300;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

.arch-modal-damaged-btn-icon svg {
    width: 18px;
    height: 18px;
}

.arch-modal-damaged-btn-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.5;
}

.arch-modal-damaged-btn-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #3E2723;
    letter-spacing: 0.2px;
}

.arch-modal-damaged-btn-text span {
    font-size: 12.5px;
    color: #6D4C41;
}

.arch-modal-damaged-btn-arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FF8F00;
    transition: transform 0.2s ease;
}

.arch-modal-damaged-btn:hover .arch-modal-damaged-btn-arrow {
    transform: translateX(4px);
}

/* --- macOS 首次打开详情弹层 #macosHelpModal --- */
.macos-help-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.macos-help-modal[hidden] {
    display: none;
}

.macos-help-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease-out;
}

.macos-help-modal-card {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px 40px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: helpModalIn 0.28s cubic-bezier(0.34, 1.24, 0.64, 1);
}

@keyframes helpModalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

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

.macos-help-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.macos-help-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.macos-help-modal-close svg {
    width: 18px;
    height: 18px;
}

.macos-help-modal-header {
    text-align: center;
    margin-bottom: 28px;
    padding-right: 40px;
    padding-left: 40px;
}

.macos-help-modal-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: #FFF3CD;
    color: #B45309;
    border: 1px solid #FCD34D;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.macos-help-modal-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.3px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.macos-help-modal-desc {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.macos-help-modal-foot {
    margin: 32px 0 0;
    padding: 18px 22px;
    background: rgba(197, 165, 90, 0.08);
    border: 1px solid rgba(197, 165, 90, 0.22);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
    text-align: center;
}

.macos-help-modal-foot a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

/* --- 模拟 macOS 弹窗 --- */
.macos-mock-wrap {
    margin: 40px auto 60px;
    max-width: 480px;
    text-align: center;
}

.macos-mock-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.macos-mock-dialog {
    position: relative;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 28px 28px 18px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.18),
        0 4px 14px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    max-width: 380px;
    margin: 0 auto;
}

.macos-mock-help {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: rgba(0, 0, 0, 0.55);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.macos-mock-icon {
    width: 58px;
    height: 58px;
    margin: 4px 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(255, 179, 0, 0.35));
}

.macos-mock-text {
    text-align: left;
    margin-bottom: 18px;
}

.macos-mock-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.5;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

.macos-mock-sub {
    font-size: 12.5px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

.macos-mock-actions {
    display: flex;
    gap: 10px;
    margin: 0 -8px -2px;
}

.macos-mock-btn {
    flex: 1;
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #1A1A1A;
    font-size: 13.5px;
    font-weight: 500;
    cursor: default;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.macos-mock-btn-primary {
    background: linear-gradient(180deg, #5BA8FF 0%, #1E7CE6 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow:
        0 1px 2px rgba(30, 124, 230, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.macos-mock-caption {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #C53030;
    background: #FFF5F5;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid #FED7D7;
}

.macos-mock-caption svg {
    color: #C53030;
}

.macos-mock-caption strong {
    font-weight: 700;
}

/* --- 三种解决方法网格 --- */
.macos-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.macos-method-terminal {
    grid-column: 1 / -1;
}

.macos-method {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.macos-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 165, 90, 0.3);
}

.macos-method-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.macos-method-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--text-light);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.macos-method-tag-recommend {
    background: rgba(34, 197, 94, 0.12);
    color: #15803D;
}

.macos-method-tag-fix {
    background: rgba(255, 152, 0, 0.14);
    color: #C2410C;
}

.macos-method-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.3px;
    margin: 0;
}

.macos-method-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 4px 0 18px;
    line-height: 1.7;
}

.macos-method-desc-mark {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803D;
    font-size: 12px;
    font-weight: 600;
    vertical-align: 2px;
}

.macos-method-steps {
    margin: 0;
    padding-left: 22px;
    counter-reset: macos-step;
    list-style: none;
}

.macos-method-steps li {
    position: relative;
    padding: 9px 0 9px 18px;
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.7;
    counter-increment: macos-step;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.macos-method-steps li:last-child {
    border-bottom: none;
}

.macos-method-steps li::before {
    content: counter(macos-step);
    position: absolute;
    left: -22px;
    top: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.macos-method-steps strong {
    color: var(--text-main);
    font-weight: 600;
}

.macos-method-steps code {
    display: inline-block;
    padding: 2px 7px;
    margin: 0 2px;
    background: var(--primary-light);
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

/* --- 终端代码块 --- */
.macos-terminal {
    margin-top: 18px;
    background: #1E1E1E;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    border: 1px solid #2A2A2A;
}

.macos-terminal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #3A3A3A 0%, #2D2D2D 100%);
    border-bottom: 1px solid #1A1A1A;
}

.macos-terminal-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.macos-terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5A5A5A;
}

.macos-terminal-dots span:nth-child(1) {
    background: #FF5F57;
}

.macos-terminal-dots span:nth-child(2) {
    background: #FEBC2E;
}

.macos-terminal-dots span:nth-child(3) {
    background: #28C840;
}

.macos-terminal-title {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
}

.macos-terminal-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.macos-terminal-copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.macos-terminal-copy.copied {
    background: rgba(40, 200, 64, 0.2);
    color: #4ADE80;
    border-color: rgba(40, 200, 64, 0.4);
}

.macos-terminal-copy svg {
    flex-shrink: 0;
}

.macos-terminal-code {
    margin: 0;
    padding: 16px 18px;
    color: #E8E8E8;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.macos-terminal-prompt {
    color: #4ADE80;
    margin-right: 8px;
    user-select: none;
    font-weight: 600;
}

.macos-terminal-tips {
    margin: 18px 0 0;
    padding: 16px 18px;
    background: rgba(197, 165, 90, 0.06);
    border: 1px solid rgba(197, 165, 90, 0.18);
    border-radius: 10px;
    list-style: none;
}

.macos-terminal-tips li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}

.macos-terminal-tips li::before {
    content: "→";
    position: absolute;
    left: 4px;
    top: 4px;
    color: var(--accent-color);
    font-weight: 700;
}

.macos-terminal-tips strong {
    color: var(--text-main);
    font-weight: 600;
}

.macos-terminal-tips code {
    display: inline-block;
    padding: 1px 6px;
    background: var(--primary-light);
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text-main);
}

.macos-terminal-tips kbd {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    box-shadow: 0 1px 0 var(--card-border);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--text-main);
    text-align: center;
}

/* --- macOS 提示区块响应式 --- */
@media (max-width: 768px) {
    .arch-modal-damaged-btn {
        padding: 12px 14px;
        gap: 10px;
    }

    .arch-modal-damaged-btn-icon {
        width: 32px;
        height: 32px;
    }

    .arch-modal-damaged-btn-text strong {
        font-size: 13px;
    }

    .arch-modal-damaged-btn-text span {
        font-size: 12px;
    }

    .arch-modal-damaged-btn-arrow {
        display: none;
    }

    .macos-help-modal {
        padding: 0;
    }

    .macos-help-modal-card {
        max-height: 100vh;
        border-radius: 0;
        padding: 28px 20px 24px;
    }

    .macos-help-modal-header {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 20px;
    }

    .macos-help-modal-title {
        font-size: 20px;
    }

    .macos-method-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .macos-method {
        padding: 24px 22px;
    }

    .macos-method-title {
        font-size: 19px;
    }

    .macos-mock-dialog {
        padding: 24px 22px 16px;
        max-width: 100%;
    }

    .macos-mock-title {
        font-size: 14px;
    }

    .macos-terminal-code {
        font-size: 12.5px;
        padding: 14px 14px;
    }

    .macos-terminal-title {
        font-size: 11.5px;
    }

}

@media (max-width: 480px) {
    .macos-method-steps li {
        font-size: 13.5px;
    }

    .macos-terminal-copy span {
        display: none;
    }

    .macos-terminal-copy {
        padding: 5px 8px;
    }
}