﻿:root {
    --bg: #f4efe7;
    --bg-soft: #fbf8f3;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --ink: #17312f;
    --ink-soft: #5f6f6a;
    --line: rgba(23, 49, 47, 0.1);
    --brand: #c7643b;
    --brand-dark: #a74f2d;
    --accent: #2c7a6b;
    --accent-soft: #e4f1ee;
    --danger: #d95d4d;
    --shadow: 0 18px 45px rgba(85, 63, 43, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(199, 100, 59, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(44, 122, 107, 0.14), transparent 26%),
        linear-gradient(180deg, #f9f4ec 0%, #f4efe7 48%, #efe8dd 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: 0;
    pointer-events: none;
    filter: blur(12px);
}

body::before {
    top: 120px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 42% 58% 46% 54%;
    background: rgba(199, 100, 59, 0.12);
}

body::after {
    bottom: 80px;
    left: -80px;
    width: 220px;
    height: 220px;
    border-radius: 58% 42% 54% 46%;
    background: rgba(44, 122, 107, 0.12);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.hero-card,
.module,
.panel-card,
.summary-card {
    backdrop-filter: blur(12px);
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 20px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 248, 239, 0.94), rgba(236, 248, 245, 0.95)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.86), transparent 38%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-card::before {
    top: -48px;
    right: 80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(199, 100, 59, 0.18), transparent 70%);
}

.hero-card::after {
    bottom: -56px;
    right: -10px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(44, 122, 107, 0.14), transparent 70%);
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge::before,
.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 10.5em;
    text-wrap: balance;
}

.hero-copy p {
    margin-top: 14px;
    max-width: 650px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(23, 49, 47, 0.08);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.stat-card strong {
    font-size: 38px;
    color: var(--brand);
    line-height: 1;
}

.stat-card span {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 15px;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
    position: sticky;
    top: 14px;
    z-index: 8;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 252, 248, 0.52);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 34px rgba(76, 58, 44, 0.08);
}

.func-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 118px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 245, 239, 0.7));
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 10px 25px rgba(60, 46, 30, 0.06);
}

.func-btn:hover,
.func-btn.active {
    transform: translateY(-2px);
    background: linear-gradient(160deg, var(--brand), #d98a63 55%, #dea47b);
    color: #fff;
    box-shadow: 0 16px 30px rgba(199, 100, 59, 0.24);
}

.func-btn-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 49, 47, 0.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.func-btn-label {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.func-btn-note {
    color: inherit;
    opacity: 0.76;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

.func-btn.active .func-btn-kicker,
.func-btn:hover .func-btn-kicker {
    background: rgba(255, 255, 255, 0.18);
}

.module-stack {
    display: grid;
    gap: 18px;
}

.module {
    display: none;
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(199, 100, 59, 0.45), rgba(44, 122, 107, 0.18), transparent);
}

.module.active {
    display: block;
    animation: rise-in 0.35s ease;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.module h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.module-tip {
    max-width: 360px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 14px;
}

.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.action-row.compact {
    margin-bottom: 0;
}

.module button {
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #3d9b8a);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 12px 24px rgba(44, 122, 107, 0.2);
}

.module button:hover {
    transform: translateY(-1px);
}

.module button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.secondary-btn,
.ghost-btn {
    background: rgba(255, 255, 255, 0.86) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.quiet-btn {
    background: rgba(23, 49, 47, 0.06) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(23, 49, 47, 0.12) !important;
    box-shadow: none !important;
}

.danger-btn,
.overlay-btn-red,
.media-delete {
    background: linear-gradient(135deg, var(--danger), #e98577) !important;
    box-shadow: 0 12px 24px rgba(217, 93, 77, 0.2) !important;
}

.overlay-btn-blue {
    background: linear-gradient(135deg, #3f74d8, #5c90ef) !important;
}

.primary-wide {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.panel-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 28px rgba(92, 69, 49, 0.04);
}

.panel-card + .panel-card {
    margin-top: 16px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
}

.module input,
.module textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(23, 49, 47, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.module input:focus,
.module textarea:focus {
    border-color: rgba(44, 122, 107, 0.45);
    box-shadow: 0 0 0 4px rgba(44, 122, 107, 0.08);
}

.module textarea {
    min-height: 150px;
}

#ai-result,
.history-list,
.summary-text {
    min-height: 130px;
    padding: 16px;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid rgba(23, 49, 47, 0.08);
    color: var(--ink);
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-wrap;
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.history-head h3 {
    font-size: 18px;
}

.history-head span {
    color: var(--ink-soft);
    font-size: 13px;
}

.history-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 49, 47, 0.08);
}

.history-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.history-item-time {
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 12px;
}

.history-item-content {
    color: var(--ink);
    line-height: 1.7;
}

.volume-panel {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(23, 49, 47, 0.08);
}

.volume-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 13px;
}

.volume-head strong {
    color: var(--ink);
    font-size: 14px;
}

.volume-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 49, 47, 0.08);
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--brand));
    transition: width 0.08s linear;
}

.media-board-shell {
    margin-top: 8px;
}

.media-board-title {
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
}

.media-board {
    min-height: 320px;
    padding: 14px;
    border: 2px dashed rgba(44, 122, 107, 0.22);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 249, 0.9));
}

.media-board-empty {
    min-height: 288px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    padding: 20px;
    line-height: 1.8;
}

.media-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.media-item {
    padding: 14px;
    border: 1px solid rgba(23, 49, 47, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
}

.media-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.media-item-title {
    font-size: 15px;
    color: var(--ink);
    font-weight: 700;
}

.media-item-status {
    font-size: 12px;
    color: var(--brand);
    background: rgba(199, 100, 59, 0.1);
    padding: 4px 8px;
    border-radius: 999px;
}

.media-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #000;
    border: 1px solid rgba(23, 49, 47, 0.08);
}

.media-delete {
    width: 100%;
    margin-top: 12px;
}

.summary-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

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

.summary-card {
    padding: 18px;
    border: 1px solid rgba(23, 49, 47, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(251, 248, 243, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.summary-card-wide {
    grid-column: span 2;
}

.summary-card h3 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 18px;
}

.summary-media {
    width: 100%;
    max-height: 320px;
    border-radius: 16px;
    border: 1px solid rgba(23, 49, 47, 0.08);
    background: #fff;
    object-fit: cover;
}

.summary-empty {
    padding: 38px 14px;
    border: 1px dashed rgba(23, 49, 47, 0.18);
    border-radius: 16px;
    text-align: center;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.84);
}

.full-camera-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
}

.full-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-camera-actions {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: min(100% - 24px, 760px);
}

.overlay-btn {
    padding: 14px 22px !important;
    border-radius: 999px !important;
    background: rgba(14, 14, 14, 0.52) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(8px);
}

.shutter-btn {
    width: 76px;
    height: 76px;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--ink) !important;
    border: 6px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 900px) {
    .hero-card,
    .summary-form,
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-card-wide {
        grid-column: auto;
    }

    .btn-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-head {
        flex-direction: column;
    }

    .module-tip {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding: 18px 0 28px;
    }

    .hero-card,
    .module {
        padding: 18px;
        border-radius: 24px;
    }

    .btn-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        top: 10px;
    }

    .func-btn {
        min-height: 98px;
        padding: 14px 12px;
        font-size: 14px;
    }

    .func-btn-label {
        font-size: 16px;
    }

    .action-row,
    .action-row.compact {
        flex-direction: column;
    }

    .module button {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .full-camera-actions {
        bottom: 22px;
        gap: 10px;
    }
}
