/* ============================================
   花开锦绣 · 古风视觉系统 v1.0
   ============================================ */

/* ===== 1. 配色系统 ===== */
:root {
    /* 主色 */
    --color-gold: #E8C87A;
    --color-gold-light: #F5E6A3;
    --color-gold-dark: #C4A050;
    --color-rouge: #C0392B;
    --color-rouge-light: #E87464;
    --color-blush: #E8A0A8;
    --color-blush-light: #F5C8CC;
    --color-ink: #1A1410;
    --color-ink-light: #3D2C24;
    --color-paper: #F5F0E8;
    --color-paper-dark: #E8DDD0;
    --color-jade: #7BA88E;
    --color-jade-light: #A8C8B8;
    --color-blue: #4A6A8A;
    --color-blue-light: #7A9ABA;

    /* 语义色 */
    --color-success: #7BA88E;
    --color-danger: #C0392B;
    --color-warning: #E8C87A;
    --color-info: #4A6A8A;

    /* 背景色 */
    --bg-primary: #1A0E0A;
    --bg-secondary: #2D1A12;
    --bg-card: rgba(255,248,240,0.04);
    --bg-card-hover: rgba(255,248,240,0.08);

    /* 边框色 */
    --border-gold: rgba(232,200,122,0.2);
    --border-gold-light: rgba(232,200,122,0.1);
    --border-rouge: rgba(192,57,43,0.3);

    /* 文字色 */
    --text-primary: #F5F0E8;
    --text-secondary: rgba(245,240,232,0.6);
    --text-muted: rgba(245,240,232,0.25);
    --text-gold: #E8C87A;

    /* 阴影 */
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 30px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(232,200,122,0.05);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* 字体 */
    --font-serif: '华文楷体', 'STKaiti', '楷体', 'KaiTi', serif;
    --font-sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 2. 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 16px;
    background-image: url('/assets/images/backgrounds/bg-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 背景遮罩（让文字更清晰） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,14,10,0.55);
    z-index: -1;
}

/* ===== 3. 古风标题 ===== */
.title-antique {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(232,200,122,0.05);
}

.title-antique-sm {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 4. 印章按钮 ===== */
.btn-seal {
    display: inline-block;
    padding: 10px 32px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--color-gold);
    background: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.btn-seal:hover {
    background: rgba(232,200,122,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(232,200,122,0.1);
}

.btn-seal:active {
    transform: scale(0.96);
}

/* 朱砂红印章（主要操作） */
.btn-seal-red {
    color: var(--color-paper);
    background: var(--color-rouge);
    border-color: var(--color-rouge);
}

.btn-seal-red:hover {
    background: #A93226;
    box-shadow: 0 4px 30px rgba(192,57,43,0.25);
}

/* 小印章（辅助操作） */
.btn-seal-sm {
    padding: 6px 18px;
    font-size: 12px;
    letter-spacing: 4px;
    border-width: 1.5px;
    border-radius: 3px;
}

/* ===== 5. 古风卡片 ===== */
.card-antique {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card-antique:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold-light);
}

/* 四角装饰 */
.card-antique::before {
    content: '『';
    position: absolute;
    top: 8px;
    left: 12px;
    color: rgba(232,200,122,0.06);
    font-size: 18px;
    font-family: var(--font-serif);
}

.card-antique::after {
    content: '』';
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: rgba(232,200,122,0.06);
    font-size: 18px;
    font-family: var(--font-serif);
}

/* ===== 6. 古风输入框 ===== */
.input-antique {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(255,248,240,0.04);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
}

.input-antique:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(232,200,122,0.04);
}

.input-antique::placeholder {
    color: var(--text-muted);
}

/* ===== 7. 古风标签页 ===== */
.tabs-antique {
    display: flex;
    gap: 4px;
    background: rgba(255,248,240,0.03);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid rgba(255,248,240,0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-antique::-webkit-scrollbar {
    display: none;
}

.tab-antique {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-antique:hover {
    color: var(--text-secondary);
}

.tab-antique.active {
    color: var(--text-primary);
    background: rgba(255,182,193,0.06);
    border: 1px solid rgba(255,182,193,0.08);
}

/* ===== 8. 古风分隔装饰 ===== */
.divider-antique {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 6px;
    margin: 16px 0;
}

.divider-antique::before,
.divider-antique::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232,200,122,0.1), transparent);
}

/* ===== 9. 通用工具类 ===== */
.text-gold {
    color: var(--color-gold);
}

.text-rouge {
    color: var(--color-rouge);
}

.text-muted {
    color: var(--text-muted);
}

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

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ===== 10. 飘落花瓣（装饰） ===== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.petal {
    position: absolute;
    top: -20px;
    font-size: 18px;
    opacity: 0.12;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) scale(1);
        opacity: 0.12;
    }
    100% {
        transform: translateY(110vh) rotate(720deg) scale(0.4);
        opacity: 0;
    }
}

/* ===== 11. Toast 通知 ===== */
.toast-antique {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-primary);
    background: rgba(26,14,10,0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    z-index: 999;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
    max-width: 90%;
}

.toast-antique.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
