/* ===== 图吧工具箱官网 - 主样式表 ===== */
/* 设计理念：简洁、轻量、现代，带细腻动效 */

:root {
    --primary: #165DFF;
    --primary-dark: #0E42D2;
    --primary-light: #E8F0FF;
    --accent: #00B42A;
    --text: #1D2129;
    --text-light: #4E5969;
    --text-muted: #86909C;
    --bg: #FFFFFF;
    --bg-soft: #F7F8FA;
    --bg-card: #FFFFFF;
    --border: #E5E6EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(22, 93, 255, 0.10);
    --shadow-lg: 0 16px 48px rgba(22, 93, 255, 0.14);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部导航 ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), #7B61FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 93, 255, 0.3);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.4);
}

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
}

/* ===== 英雄区域 ===== */
.hero {
    position: relative;
    padding: 80px 0 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 93, 255, 0.10), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(123, 97, 255, 0.10), transparent 45%),
        var(--bg-soft);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-screenshot {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: #fff;
}

.hero-screenshot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.04), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-screenshot img {
    width: 100%;
    transition: transform 0.6s ease;
}

.hero-screenshot:hover img {
    transform: scale(1.02);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 180, 42, 0.10);
    color: var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== 通用区块 ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

/* ===== 核心优势 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #7B61FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), #7B61FF);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.feature-item h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 产品特点 ===== */
.product-features {
    background: var(--bg-soft);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-item {
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.product-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.product-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.product-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 用户评价 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.review-rating {
    color: #FFB400;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-item p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text);
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 使用案例 ===== */
.use-cases {
    background: var(--bg-soft);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-item {
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border-top: 3px solid transparent;
}

.case-item:hover {
    border-top-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 下载区域 ===== */
.download-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.download-section .section-title,
.download-section .section-subtitle {
    color: #fff;
}

.download-section .section-subtitle {
    opacity: 0.85;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.download-section .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.download-section .btn-primary:hover {
    background: #f0f4ff;
    color: var(--primary-dark);
}

/* ===== 下载中心页面 ===== */
.download-hero-box {
    text-align: center;
    padding: 56px 32px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 0%, rgba(22, 93, 255, 0.12), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(123, 97, 255, 0.10), transparent 55%),
        var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: 48px;
}

.download-hero-box .app-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #7B61FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.30);
}

.download-hero-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.download-hero-box .version {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 180, 42, 0.10);
    color: var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-hero-box .meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.download-hero-box .meta span {
    margin: 0 8px;
}

.btn-download-xl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.35);
    transition: all var(--transition);
}

.btn-download-xl:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(22, 93, 255, 0.45);
}

.btn-download-xl:active {
    transform: translateY(-1px);
}

.download-source {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.download-source a {
    color: var(--text-muted);
    text-decoration: underline;
}

.version-info {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
}

.version-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.version-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
}

.version-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.version-info-item .label {
    color: var(--text-muted);
}

.version-info-item .value {
    color: var(--text);
    font-weight: 600;
}

.info-block {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.info-block h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-block ul {
    list-style: none;
}

.info-block ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-light);
}

.info-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ===== 工具列表 ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.tool-category:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tool-category h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-light);
    transition: all var(--transition);
}

.tool-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    font-size: 24px;
    color: var(--primary);
    transition: transform var(--transition);
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 28px 22px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 关于/联系页面 ===== */
.page-hero {
    background: var(--bg-soft);
    padding: 56px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.content-block {
    max-width: 820px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text);
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-block ul {
    margin: 0 0 16px 24px;
    color: var(--text-light);
}

.content-block ul li {
    margin-bottom: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 20px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== 页脚 ===== */
footer {
    background: #1A1F2E;
    color: #C9CDD4;
    padding: 56px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo .logo {
    color: #fff;
}

.footer-logo .logo span {
    background: linear-gradient(135deg, #4D7CFF, #9B7BFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #86909C;
    font-size: 14px;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #86909C;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact li {
    color: #86909C;
    font-size: 14px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #2A2F3E;
    text-align: center;
    color: #86909C;
    font-size: 13px;
}

.footer-bottom a {
    color: #86909C;
    margin: 0 6px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== 滚动渐入动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .features-grid,
    .product-grid,
    .reviews-grid,
    .cases-grid,
    .download-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        transform: translateY(-150%);
        transition: transform var(--transition);
        box-shadow: var(--shadow-md);
    }

    nav.open {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .features-grid,
    .product-grid,
    .reviews-grid,
    .cases-grid,
    .download-options,
    .tools-grid,
    .version-info-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}
