/* ============================================================
   TiredWork 官网通用样式 (首页/产品页/静态页共用)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 8% -10%, rgba(52, 211, 153, 0.09), transparent 32rem),
        linear-gradient(180deg, #07110F 0%, #081411 52%, #07110F 100%);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(7, 17, 15, 0.86);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s ease, filter 0.25s ease; }
.logo:hover { transform: translateY(-1px); filter: drop-shadow(0 0 16px var(--brand-glow)); }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 18px rgba(52, 211, 153, 0.14); }
.brand-wordmark { display: block; line-height: 1; white-space: nowrap; }
.brand-wordmark strong, .brand-wordmark > span { font-size: 21px; font-weight: 800; letter-spacing: -0.045em; }
.brand-wordmark > span { color: #f1f7f3; }
.brand-wordmark strong { color: var(--accent); }
.brand-wordmark small { display: block; margin-top: 4px; color: var(--text-dim); font-size: 9px; letter-spacing: 0.03em; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ===== 公告条 ===== */
.announcement {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 10px 20px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.08);
    color: var(--accent);
    font-size: 14px;
    text-align: center;
}

/* ===== Hero (首页) ===== */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 24px 80px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; left: -80px; right: -80px; bottom: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(52, 211, 153, 0.18), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12), transparent 30%);
    z-index: -1;
    pointer-events: none;
}
.hero-left .badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px;
    font-size: 13px; color: var(--text-dim); margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.04);
}
.badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px rgba(52, 211, 153, 0.8); }
.hero-left h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-left h1 .line-1 { color: var(--text); display: block; }
.hero-left h1 .line-2 {
    background: linear-gradient(135deg, #34D399, #10B981);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; display: block;
}
.hero-left .subtitle { font-size: clamp(16px, 1.8vw, 19px); color: var(--text-dim); max-width: 520px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.tech-note { margin-top: 32px; font-size: 14px; color: var(--text-dim); }
.tech-note code {
    background: rgba(255, 255, 255, 0.05); padding: 3px 10px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1); color: var(--accent);
    font-family: "Consolas", "SF Mono", monospace;
}

.hero-right { position: relative; }
.hero-right::after {
    content: "";
    position: absolute; inset: -30px;
    background: radial-gradient(circle, var(--brand-glow), transparent 68%);
    filter: blur(10px); z-index: -1; pointer-events: none;
}
.hero-window {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36), 0 0 56px var(--brand-glow);
    animation: tiredwork-float 8s ease-in-out infinite;
    cursor: zoom-in;
}
.hero-window img { display: block; width: 100%; transition: transform 0.45s ease, filter 0.45s ease; }
.hero-window:hover img { transform: scale(1.018); filter: saturate(1.08) contrast(1.02); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.window-bar .dots { display: flex; gap: 7px; }
.window-bar .dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.window-bar .dots span:nth-child(1) { background: #FF5F57; }
.window-bar .dots span:nth-child(2) { background: #FEBC2E; }
.window-bar .dots span:nth-child(3) { background: #28C840; }
.window-bar .title { flex: 1; text-align: center; font-size: 13px; color: var(--text-dim); }

@keyframes tiredwork-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #04100C;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(52, 211, 153, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.5); }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ===== Section ===== */
section { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* ===== 产品卡 (首页) ===== */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.pcard {
    background: linear-gradient(145deg, rgba(16, 26, 22, 0.96), rgba(12, 23, 19, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 26px;
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.pcard:hover {
    transform: translateY(-7px);
    background: var(--surface-hover);
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26), 0 0 30px rgba(52, 211, 153, 0.08);
}
.p-head { display: flex; align-items: center; gap: 12px; }
.p-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 14px; font-size: 24px; flex: 0 0 auto;
    background: rgba(52, 211, 153, 0.08);
}
.p-name h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
    background: rgba(56, 189, 248, 0.1); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.25);
}
.p-desc { color: var(--text-dim); font-size: 14px; min-height: 40px; }
.product-dl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-kind {
    font-size: 12px; color: var(--text-dim);
    background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 10px; border-radius: 999px;
}
.p-shot {
    border: 1px solid rgba(52, 211, 153, 0.16); border-radius: 12px; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    cursor: zoom-in;
}
.p-shot img { display: block; width: 100%; height: auto; }
.p-feats { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.p-feats li { font-size: 13px; color: var(--text-dim); padding-left: 18px; position: relative; }
.p-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.p-actions { display: flex; gap: 10px; margin-top: auto; }
.p-actions .btn { flex: 1; justify-content: center; }

/* ===== Values ===== */
.values { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.value {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 26px; text-align: center;
}
.value .v-icon { font-size: 32px; margin-bottom: 12px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { color: var(--text-dim); font-size: 13px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--text-dim); font-size: 14px; }
.site-footer a { color: var(--accent); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .brand-icon { width: 36px; height: 36px; }
.footer-cn { color: var(--text); }
.footer-contact { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 14px; }
.footer-beian { display: flex; gap: 8px; font-size: 13px; }
.footer-copy { margin-top: 6px; font-size: 13px; }

/* ===== 静态页 (隐私/协议/404) ===== */
.static-page { max-width: 820px; margin: 0 auto; padding: 70px 24px 90px; }
.static-page h1 { font-size: 32px; margin-bottom: 6px; }
.static-page .updated { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.static-page h2 { font-size: 19px; margin: 30px 0 12px; color: var(--accent); }
.static-page p, .static-page li { color: var(--text-dim); font-size: 15px; margin-bottom: 10px; }
.static-page ul { padding-left: 22px; }
.static-page.not-found { text-align: center; padding-top: 110px; }
.static-page.not-found h1 { font-size: 96px; color: var(--accent); }
.static-page.not-found p { margin-bottom: 28px; }
.static-page.not-found .btn { margin: 0 6px; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.88);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; }
.lightbox-bar {
    position: absolute; top: 16px; left: 0; right: 0;
    display: flex; justify-content: center; align-items: center; gap: 16px;
}
.lightbox-title { color: var(--text-dim); font-size: 14px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08);
    color: #fff; font-size: 22px; cursor: pointer;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06);
    color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--text-dim); font-size: 13px; }

/* ===== 验证码弹窗 ===== */
.modal-mask {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
}
.modal-mask.open { display: flex; }
.modal {
    background: linear-gradient(145deg, #101A16, #0c1713);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    width: 340px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.modal .sub { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.cap-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cap-row img { height: 48px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; background: #101A16; }
.cap-row input {
    flex: 1; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04); color: var(--text);
    font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase;
}
.cap-row input:focus { outline: 2px solid rgba(52, 211, 153, 0.5); }
.modal .err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.modal .btn { width: 100%; justify-content: center; }

/* ===== 焦点可见性 / 减少动效 ===== */
.btn:focus-visible, .nav-links a:focus-visible, .logo:focus-visible, .p-shot img:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.8);
    outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 56px; padding: 72px 20px 64px; }
    .hero-right { order: -1; max-width: 620px; margin: 0 auto; }
    .hero-left h1 { font-size: clamp(36px, 8vw, 52px); }
    section { padding: 64px 20px; }
    .nav-links { display: none; }
}
@media (max-width: 640px) {
    .value-grid { grid-template-columns: 1fr 1fr; }
    .brand-wordmark small { display: none; }
    .brand-icon { width: 36px; height: 36px; }
}
