/* ==========================================================================
   fxy8.css — 风向云8 根目录单页样式
   主色：Red #dc2626 | 强调：Amber #f59e0b
   ========================================================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --c-primary: #dc2626;
    --c-primary-dark: #b91c1c;
    --c-primary-light: #ef4444;
    --c-primary-50: #fef2f2;
    --c-accent: #f59e0b;
    --c-accent-light: #fbbf24;

    --c-text: #0f172a;
    --c-text-muted: #64748b;
    --c-text-soft: #94a3b8;

    --c-bg: #ffffff;
    --c-bg-alt: #fafafa;
    --c-bg-soft: #fff7ed;

    --c-border: #e5e7eb;
    --c-border-soft: #f1f5f9;

    --c-danger: #dc2626;
    --c-success: #059669;

    --c-grad-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --c-grad-accent: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    --c-grad-soft: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-primary: 0 8px 24px rgba(220, 38, 38, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 10px;
    --radius-xl: 20px;

    --container: 1200px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ---------- 容器 ---------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header（与 style.css 完全一致） ---------- */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ececec;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 3px;
    background: linear-gradient(90deg, #8b1a1a 0%, #c92828 70%, transparent 100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo { display: flex; align-items: center; }

.logo-image {
    height: 76px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: stretch;
    height: 100%;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    margin-top: 0;
    list-style: none;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: stretch;
    margin: 0 2px;
    position: relative;
}

nav ul li.nav-divider {
    width: 6px;
    margin: 0 1px;
    /* background: #e7e5e5; */
    background:linear-gradient(0deg, #e6e2e2 0%, #f86d6d 70%, transparent 100%);
    align-self: center;
    height: 78px;
    cursor: default;
    pointer-events: none;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 0 22px;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    font-size: 18px;
    letter-spacing: 0.06em;
    transition: color 0.25s ease, background-color 0.25s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 4px;
    background-color: #f01109;
    transition: left 0.25s ease, right 0.25s ease;
}

nav ul li a:hover {
    color: #8b1a1a;
}

nav ul li a:hover::before {
    left: 22px;
    right: 22px;
}

nav ul li a.active {
    color: #fff;
    background-color: #d41515;
}

nav ul li a.active::before {
    display: none;
}

nav ul li a[href$="pay.html"] {
    margin-left: 8px;
}

/* home-link */
.home-link {
    font-weight: 400;
    display: flex;
    align-items: center;
}

.home-link i {
    margin-right: 5px;
    font-size: 16px;
}

.home-link:hover {
    background: rgba(0, 102, 204, 0.1);
}


/* ---------- Hero Banner ---------- */
.hero-banner {
    /* 深红基底 + 白色光晕 */
    background:
        radial-gradient(ellipse 60% 80% at 90% 10%,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 55%),
        radial-gradient(ellipse 50% 70% at 10% 95%,
            rgba(255, 255, 255, 0.18) 0%,
            transparent 60%),
        linear-gradient(135deg,
            #7f1d1d 0%,
            #b91c1c 30%,
            #dc2626 65%,
            #b91c1c 100%);
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* 斜方格底纹 */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: translate(-50%, -50%) rotate(30deg);
    pointer-events: none;
}

/* 右上角柔光高光 */
.hero-banner::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 35%,
        transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-left: 48px;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.3em;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 560px;
}

.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 48px;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    border: none;
    letter-spacing: 5px;
}

.btn-primary {
    background: #fff;
    color: var(--c-primary);
}

.btn-primary:hover {
    background: #fff0f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* ---------- Section Title ---------- */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--c-text-muted);
}

/* ---------- Purchase Options（套餐选择） ---------- */
.purchase-options {
    background: #f8f5f5;
    padding: 64px 0;
}

.purchase-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.purchase-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 22px;
    padding: 28px 32px;
    transition: all 0.25s var(--ease);
    position: relative;
}

.purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary-light);
}

.purchase-card.featured {
    border: 2px solid var(--c-primary);
    box-shadow: var(--shadow-primary);
}

.purchase-card.featured::before {
    content: "推荐";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-grad-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.purchase-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 8px;
}

.purchase-card .price {
    font-size: 20px;
    color: var(--c-primary);
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border-soft);
    margin-bottom: 4px;
}

.purchase-card ul { flex: 1; margin-bottom: 24px; list-style: none; }

.purchase-card ul li {
    position: relative;
    padding: 7px 0 7px 30px;
    font-size: 16px;
    color: var(--c-text);
    line-height: 1.5;
}

.purchase-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.purchase-card ul li.include-upgrade {
    padding-left: 0;
    color: var(--c-primary);
    font-weight: 600;
    font-size: 16px;
}

.purchase-card ul li.include-upgrade::before { display: none; }

.purchase-card .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px;
    background: var(--c-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.purchase-card .btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.purchase-card.featured .btn {
    background: var(--c-grad-primary);
}

/* ---------- Comparison Table ---------- */
.comparison-section {
    padding: 64px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.comparison-table thead tr {
    background: var(--c-grad-primary);
}

.comparison-table thead th {
    color: #fff;
    font-weight: 600;
    padding: 13px 14px;
    text-align: center;
    white-space: nowrap;
}

.comparison-table thead th:first-child,
.comparison-table thead th:nth-child(2) {
    text-align: left;
}

.comparison-table thead .version-header {
    font-size: 20px;
    font-weight: 700;
}

.comparison-table thead .version-price {
    font-size: 16px;
    font-weight: 400;
    margin-top: 3px;
    opacity: 0.9;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--c-border-soft);
    transition: background 0.15s var(--ease);
}

.comparison-table tbody tr:hover {
    background: var(--c-bg-soft);
}

.comparison-table tbody tr:nth-child(even) {
    background: #fffbfb;
}

.comparison-table tbody tr:nth-child(even):hover {
    background: var(--c-bg-soft);
}

.comparison-table tbody td {
    padding: 11px 14px;
    color: var(--c-text);
    text-align: center;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--c-primary);
    white-space: nowrap;
    font-size: 16px;
}

.comparison-table tbody td:nth-child(2) {
    text-align: left;
    color: var(--c-text-muted);
    font-size: 15px;
    max-width: 280px;
}

.comparison-table tbody td .check {
    color: var(--c-success);
    font-size: 14px;
}

.comparison-table tbody td .cross {
    color: #f1f0ee;
    font-size: 16px;
}

.table-note {
    font-size: 16px;
    color: var(--c-text-muted);
    text-align: center;
    margin-top: 16px;
}

/* ---------- Footer ---------- */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 48px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-logo p {
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 8px; }

.footer-links ul li a,
.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p { font-size: 14px; margin-bottom: 6px; }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .purchase-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .purchase-cards { grid-template-columns: 1fr; gap: 16px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .hero-content { padding-left: 0; }
}

@media (max-width: 768px) {
    /* header / nav 与 index.html 保持一致 */
    header .container {
        flex-direction: column;
        height: auto;
        padding: 2px 0;
    }
    .logo { display: none; }
    nav {
        width: 100%;
        height: 80px;
    }
    nav ul {
        justify-content: center;
        width: 100%;
        height: 45px;
    }
    nav ul li { margin: 0px 5px; }
    nav ul li a {
        padding: 2px 10px;
        font-size: 15px;
    }

    .buttons { flex-direction: column; }
    .buttons .btn { width: 100%; justify-content: center; }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 9px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
    nav ul li { margin: 0px 2px; }
    nav ul li a {
        padding: 2px 8px;
        font-size: 16px;
        letter-spacing: 0.04em;
    }
    nav ul li a[href$="pay.html"] { margin-left: 2px; }

    /* 小屏：进一步压缩容器内边距，给内容让出空间 */
    .container {
        width: 96%;
        padding: 0 6px;
    }

    /* hero 在小屏收紧上下间距 */
    .hero-banner { padding: 56px 0; }
    .hero-content h2 { font-size: 22px; line-height: 1.4; }
    .hero-subtitle { font-size: 14px; }

    /* 定价/购买卡片在小屏压缩内边距 */
    .purchase-card,
    .pricing-card { padding: 20px 18px; }
    .purchase-card .price,
    .pricing-card .price { font-size: 22px; }

    /* 表格容器允许横向滚动，避免挤压整页布局 */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .comparison-table { min-width: 560px; }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 8px 6px; font-size: 13px; }
}
