/* ========== 基础变量 ========== */
:root {
    --ink: #1a1a1a;
    --ink-light: #2d2d2d;
    --paper: #f5f0e8;
    --paper-dark: #e8e0d0;
    --paper-light: #faf7f0;
    --gold: #c9a96e;
    --gold-dark: #a8893e;
    --gold-light: #e0c992;
    --red: #c23a2e;
    --red-dark: #8b1a1a;
    --red-light: #e85d51;
    --text: #3d3428;
    --text-muted: #8a7e6e;
    --transition: 0.3s ease;
    --font-serif: 'Noto Serif SC', 'SimSun', serif;
    --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-seal {
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    letter-spacing: 2px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: var(--transition);
}

/* ========== 导航右侧用户区 ========== */
.nav-right {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.nav-guest {
    display: flex;
    gap: 8px;
}

.nav-btn-login {
    padding: 5px 16px;
    background: transparent;
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 6px;
    color: var(--gold);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.nav-btn-login:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.nav-btn-reg {
    padding: 5px 16px;
    background: rgba(201,169,110,0.12);
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 6px;
    color: var(--gold);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.nav-btn-reg:hover {
    background: rgba(201,169,110,0.2);
}

.nav-logged {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    transition: 0.2s;
}

.nav-avatar-btn:hover {
    background: rgba(201,169,110,0.08);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.nav-nick {
    font-size: 13px;
    color: var(--gold);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 180px;
    background: var(--ink);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.2s;
    z-index: 200;
    overflow: hidden;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-info {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.nav-drop-info span:first-child {
    color: var(--gold);
}

.nav-drop-info span:last-child {
    color: var(--text-muted);
}

.nav-drop-item {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: rgba(245,240,232,0.6);
    transition: 0.2s;
}

.nav-drop-item:hover {
    background: rgba(201,169,110,0.08);
    color: var(--paper);
}

.nav-drop-logout {
    color: var(--red-light);
}

.nav-drop-logout:hover {
    background: rgba(194,58,46,0.08);
}

.nav-link-ext {
    color: var(--gold) !important;
    font-weight: 600;
}

.nav-link-ext:hover {
    color: var(--gold-light) !important;
}

.nav-link-home {
    opacity: 0.4;
    font-size: 14px;
    transition: 0.2s;
}

.nav-link-home:hover {
    opacity: 1;
}

/* ========== Hero区域 ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2520 40%, #3d3428 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
                  radial-gradient(ellipse at 80% 20%, rgba(194, 58, 46, 0.06) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-seal {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    background: var(--red);
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(194, 58, 46, 0.4);
    animation: sealPulse 3s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(194, 58, 46, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(194, 58, 46, 0.6); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 900;
    color: var(--paper);
    letter-spacing: 16px;
    margin-bottom: 16px;
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 24px;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-desc {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 48px;
    letter-spacing: 2px;
    animation: fadeUp 1s ease-out 0.4s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-start {
    display: inline-block;
    padding: 16px 48px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 6px;
    cursor: pointer;
    transition: var(--transition);
    animation: fadeUp 1s ease-out 0.6s both;
}

.btn-start:hover {
    background: var(--gold);
    color: var(--ink);
}

/* ========== 通用区块 ========== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.header-decoration {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 8px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ========== 占卜区域 ========== */
.divination-section {
    padding: 100px 0 80px;
    background: var(--paper);
    position: relative;
}

.divination-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ========== 通用样式 ========== */
.zhouyi-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.zhouyi-card {
    background: var(--paper-light);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ========== 问题输入 ========== */
.question-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    background: var(--paper);
    color: var(--text);
    font-size: 16px;
    font-family: var(--font-sans);
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.question-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.question-input::placeholder {
    color: var(--text-muted);
}

/* ========== 按钮 ========== */
.zhouyi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 4px;
    border-radius: 8px;
    font-family: var(--font-serif);
}

.zhouyi-btn:hover {
    background: var(--red-dark);
    border-color: var(--gold);
}

.zhouyi-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.zhouyi-btn-secondary {
    background: transparent;
    color: var(--gold);
}

.zhouyi-btn-secondary:hover {
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold-dark);
}

.zhouyi-btn-small {
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 2px;
}

.text-center {
    text-align: center;
}

/* ========== 须知框 ========== */
.notice-box {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.notice-box h3 {
    color: var(--gold-dark);
    font-family: var(--font-serif);
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 2px;
}

.notice-box ul {
    list-style: none;
    padding-left: 0;
}

.notice-box li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 14px;
    padding-left: 16px;
    position: relative;
}

.notice-box li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ========== 卦象展示 ========== */
.hexagram-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.hexagram-display {
    text-align: center;
    padding: 30px;
    min-width: 150px;
}

.hexagram-display .name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.hexagram-display .symbol-big {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 8px;
}

.hexagram-display .element {
    font-size: 14px;
    color: var(--text-muted);
}

.arrow-icon {
    font-size: 32px;
    color: var(--gold);
}

/* ========== 结果区域 ========== */
.result-section {
    margin-bottom: 20px;
}

.result-section h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gold-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    letter-spacing: 4px;
}

.guaci-text,
.xiangci-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    color: var(--text);
    font-style: italic;
}

.interpretation-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.ai-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    vertical-align: middle;
    margin-right: 4px;
}

.ai-interpretation-text {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.08), rgba(194, 58, 46, 0.05));
    border-left: 3px solid var(--gold);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    white-space: pre-wrap;
}

/* ========== 爻辞 ========== */
.yaoci-item {
    background: rgba(201, 169, 110, 0.05);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.yaoci-item .yao-name {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
}

.yaoci-item .yaoci-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.yaoci-item .yaoci-interp {
    font-size: 14px;
    color: var(--text);
}

/* ========== 加载状态 ========== */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(201, 169, 110, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    margin-top: 20px;
    color: var(--paper);
    font-size: 16px;
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

/* ========== 分享按钮组 ========== */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

/* ========== 声明 ========== */
.disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

/* ========== 关于 ========== */
.about-section {
    padding: 80px 0;
    background: var(--paper-dark);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 6px;
    margin-bottom: 24px;
    color: var(--ink);
}

.about-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 2;
}

.about-note {
    margin-top: 28px;
    padding: 20px;
    background: rgba(194, 58, 46, 0.05);
    border: 1px solid rgba(194, 58, 46, 0.15);
    border-radius: 8px;
}

.about-note p {
    font-size: 13px;
    color: var(--red-dark);
    margin: 0;
}

/* ========== 底部 ========== */
.footer {
    padding: 32px 0;
    background: var(--ink);
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.4);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

/* ========== 铜钱占卜 ========== */
.toss-area {
    text-align: center;
    padding: 30px;
}

.coins-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.coin {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #b8956e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--paper);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.coin.head {
    background: linear-gradient(135deg, #c9a96e, #e0c992);
    color: var(--ink);
}

.coin.tail {
    background: linear-gradient(135deg, #4a5555, #8b7373);
    color: var(--paper);
}

.coin.flipping {
    animation: flip 0.8s ease-in-out;
}

@keyframes flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* ========== 进度 ========== */
.progress-text {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* ========== 六爻展示 ========== */
.hexagram-building {
    background: rgba(201, 169, 110, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.yao-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--paper);
    border-radius: 8px;
    transition: var(--transition);
}

.yao-row.active {
    background: rgba(201, 169, 110, 0.15);
    border-left: 3px solid var(--gold);
}

.yao-row .position {
    width: 60px;
    font-family: var(--font-serif);
    color: var(--text-muted);
}

.yao-row .symbol {
    width: 40px;
    text-align: center;
    font-size: 20px;
    color: var(--ink);
}

.yao-row .symbol.changing {
    color: var(--red);
    font-weight: bold;
}

.yao-row .status {
    flex: 1;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
}

.yao-row .status.changing {
    color: var(--red);
}

.yao-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(201, 169, 110, 0.1);
    border-radius: 8px;
}

.yao-result .yao-type {
    font-weight: 600;
    color: var(--gold);
    margin-right: 15px;
}

.yao-result .yao-symbol {
    font-size: 24px;
    color: var(--ink);
    margin-right: 15px;
}

.yao-result .changing-indicator {
    color: var(--red);
    font-size: 14px;
}

/* ========== 历史记录 ========== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--paper);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.15);
}

.history-item .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-item .hexagram-name {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--ink);
}

.history-item .symbol {
    color: var(--gold);
    margin-left: 8px;
}

.history-item .date {
    font-size: 13px;
    color: var(--text-muted);
}

.history-item .question {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.history-item .meta {
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 8px;
    background: var(--paper);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--gold);
}

/* ========== 表单组 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ========== 登录/注册弹窗 ========== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-overlay.show {
    display: flex;
}

.auth-modal {
    background: var(--ink-light);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 14px;
    width: 400px;
    max-width: 90vw;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: authFadeUp 0.25s ease;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #555;
    font-size: 26px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.auth-close:hover {
    color: var(--red);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 15px;
    font-family: var(--font-serif);
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: -1px;
    letter-spacing: 2px;
}

.auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.auth-tab:hover {
    color: #aaa;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 8px;
    color: var(--paper);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    font-family: var(--font-sans);
}

.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.auth-field input::placeholder {
    color: #444;
}

.auth-msg {
    min-height: 18px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 6px;
}

.auth-msg.error {
    color: var(--red-light);
}

.auth-msg.success {
    color: #5ab07a;
}

.auth-submit {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 3px;
    font-family: var(--font-serif);
}

.auth-submit:hover {
    box-shadow: 0 4px 16px rgba(201,169,110,0.3);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #666;
}

.auth-switch a {
    color: var(--gold);
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(245,240,232,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 20px;
        color: var(--ink);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-right {
        margin-left: 12px;
    }

    .nav-nick {
        display: none;
    }

    .hexagram-compare {
        flex-direction: column;
        gap: 20px;
    }

    .hexagram-display {
        min-width: auto;
    }

    .arrow-icon {
        transform: rotate(90deg);
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons button,
    .share-buttons a {
        width: 100%;
    }

    .section-container {
        padding: 0 20px;
    }

    .auth-modal {
        padding: 28px 20px;
    }
}
