/**
 * 埃及复古壁画风格样式表
 * Egyptian Slabs - Main Stylesheet
 */

/* ==================== 变量 - 埃及复古壁画2D风格 ==================== */
:root {
    /* 埃及复古壁画配色 - 基于古埃及壁画常用色彩 */
    --egypt-gold: #D4AF37;
    --egypt-gold-light: #E8C547;
    --egypt-gold-dark: #B8941F;

    /* 埃及蓝 (青金石色) */
    --egypt-blue: #1E4D6B;
    --egypt-blue-dark: #0F2D3D;
    --egypt-lapis: #1B3D5C;

    /* 赭石红 (红赭石) */
    --egypt-red: #8B3A3A;
    --egypt-red-dark: #5C1E1E;

    /* 孔雀石绿 */
    --egypt-green: #2D5A3D;
    --egypt-green-light: #3D7A4D;

    /* 纸莎草/亚麻色 */
    --egypt-white: #F5F0E0;
    --egypt-cream: #E8DCC8;

    /* 尼罗河泥/陶土色 */
    --egypt-black: #1A1510;
    --egypt-brown: #4A3728;
    --egypt-brown-light: #6B5344;

    /* 沙石色 */
    --egypt-sand: #C4A574;
    --egypt-sand-dark: #A08050;

    /* 石灰石/砂岩色 */
    --egypt-stone: #8B7355;
    --egypt-stone-light: #A69076;
    --egypt-stone-dark: #6B5344;

    /* 绿松石 */
    --egypt-turquoise: #2E8B7B;
    --egypt-turquoise-light: #4AA89A;

    /* 赭石色 */
    --egypt-ochre: #B87C3F;
    --egypt-ochre-light: #D49A5A;

    /* 尺寸 */
    --slab-size: min(8vh, 80px);
    --grid-gap: 10px;
    --header-height: 80px;

    /* 字体 */
    --font-heading: 'Cinzel', 'Noto Serif Egyptian', serif;
    --font-body: 'Noto Serif Egyptian', serif;
}

/* ==================== 基础 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background:
        linear-gradient(135deg, rgba(26, 45, 60, 0.95) 0%, rgba(60, 45, 30, 0.95) 50%, rgba(139, 90, 43, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.05'%3E%3Cpath d='M0 100 Q50 80 100 100 T200 100'/%3E%3Cpath d='M0 120 Q50 100 100 120 T200 120'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--egypt-white);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 头部 ==================== */
.main-header {
    background: linear-gradient(180deg, var(--egypt-blue-dark) 0%, var(--egypt-lapis) 50%, var(--egypt-blue) 100%);
    border-bottom: 4px solid var(--egypt-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header::after {
    content: '𓇼 𓀀 𓏞 𓉐 𓃀 𓆣 𓇼';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.2rem;
    color: var(--egypt-gold);
    letter-spacing: 15px;
    opacity: 0.6;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-content::before {
    content: '𓈖 𓏏 𓂦';
    position: absolute;
    top: 5px;
    left: 20px;
    font-size: 1rem;
    color: var(--egypt-gold);
    opacity: 0.4;
    letter-spacing: 8px;
}

.header-content::after {
    content: '𓅓 𓏤 𓄤';
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 1rem;
    color: var(--egypt-gold);
    opacity: 0.4;
    letter-spacing: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo-icon {
    font-size: 3rem;
    color: var(--egypt-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4); }
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--egypt-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    background: linear-gradient(180deg, var(--egypt-gold-light) 0%, var(--egypt-gold) 50%, var(--egypt-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo::before {
    content: '𓏞𓏞';
    position: absolute;
    left: -30px;
    font-size: 1.5rem;
    color: var(--egypt-gold);
    opacity: 0.6;
}

.logo::after {
    content: '𓏞𓏞';
    position: absolute;
    right: -30px;
    font-size: 1.5rem;
    color: var(--egypt-gold);
    opacity: 0.6;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: var(--egypt-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--egypt-gold);
    color: var(--egypt-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--egypt-gold);
    color: var(--egypt-gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-link.active::after {
    content: '𓏞';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: var(--egypt-gold);
}

.nav-icon { font-size: 1.3rem; }

.btn-register {
    background: linear-gradient(135deg, var(--egypt-gold) 0%, var(--egypt-gold-dark) 100%);
    color: var(--egypt-black);
    font-weight: bold;
}

.user-greeting {
    margin-left: 20px;
    padding: 8px 15px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    border: 1px solid var(--egypt-gold);
    font-size: 0.9rem;
}

/* ==================== 主内容 ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* ==================== 游戏容器 ==================== */
.slab-game-container {
    background: linear-gradient(135deg, rgba(107, 83, 68, 0.9) 0%, rgba(139, 115, 85, 0.9) 100%);
    border: 4px solid var(--egypt-gold);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.slab-game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.slab-game-container::after {
    content: '𓏞 𓀀 𓉐 𓃀 𓆣 𓄤 𓏞';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
    color: var(--egypt-gold);
    letter-spacing: 20px;
    opacity: 0.3;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--egypt-gold);
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
}

.game-title::before {
    content: '𓏞𓏞𓏞';
    font-size: 2rem;
    color: var(--egypt-gold);
    opacity: 0.8;
    animation: glow 2s ease-in-out infinite;
}

.game-title::after {
    content: '�𓏞𓏞';
    font-size: 2rem;
    color: var(--egypt-gold);
    opacity: 0.8;
    animation: glow 2s ease-in-out infinite reverse;
}

.game-area {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================== 6x6 网格 ==================== */
.slab-grid {
    display: grid;
    grid-template-columns: repeat(6, var(--slab-size));
    grid-template-rows: repeat(6, var(--slab-size));
    gap: var(--grid-gap);
    background: 
        linear-gradient(135deg, var(--egypt-black) 0%, #2a2a2a 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.15'%3E%3Cpath d='M0 20 L40 20 M20 0 L20 40'/%3E%3Ccircle cx='20' cy='20' r='15'/%3E%3C/g%3E%3C/svg%3E");
    padding: 20px;
    border-radius: 15px;
    border: 4px solid var(--egypt-gold-dark);
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    margin: 0 auto;
}

.slab-grid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--egypt-gold);
    border-radius: 20px;
    pointer-events: none;
}

.slab-grid::after {
    content: '𓏞 𓏞 𓏞';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--egypt-gold);
    letter-spacing: 10px;
    opacity: 0.6;
}

.grid-cell {
    width: var(--slab-size);
    height: var(--slab-size);
    background: 
        linear-gradient(135deg, var(--egypt-stone-light) 0%, var(--egypt-stone) 50%, var(--egypt-stone-dark) 100%);
    border: 3px solid var(--egypt-stone-dark);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

.grid-cell::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.grid-cell.highlight-row {
    background: 
        linear-gradient(135deg, var(--egypt-gold-dark) 0%, var(--egypt-gold) 50%, var(--egypt-gold-light) 100%);
    border-color: var(--egypt-gold-light);
    box-shadow: 
        0 0 20px var(--egypt-gold),
        inset 0 0 20px rgba(212, 175, 55, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px var(--egypt-gold), inset 0 0 20px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 30px var(--egypt-gold), inset 0 0 30px rgba(212, 175, 55, 0.7); }
}

.grid-cell.target-position {
    background: 
        linear-gradient(135deg, var(--egypt-blue) 0%, var(--egypt-lapis) 50%, var(--egypt-blue-dark) 100%);
    border-color: var(--egypt-gold);
    box-shadow: 
        0 0 15px var(--egypt-blue),
        inset 0 0 20px rgba(44, 95, 141, 0.5);
}

.grid-cell.target-position::after {
    content: '𓍹';
    position: absolute;
    font-size: 1.8rem;
    color: var(--egypt-gold);
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* ==================== 石板 ==================== */
.slab {
    width: calc(var(--slab-size) - 10px);
    height: calc(var(--slab-size) - 10px);
    background: linear-gradient(135deg, var(--egypt-stone-light) 0%, var(--egypt-stone) 30%, var(--egypt-ochre) 70%, var(--egypt-stone-dark) 100%);
    border: 3px solid var(--egypt-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: var(--egypt-gold);
    cursor: grab;
    user-select: none;
    position: absolute;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(212, 175, 55, 0.2),
        0 0 10px rgba(212, 175, 55, 0.3);
    z-index: 10;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, left, top;
}

.slab::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.slab::after {
    content: '𓏞';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 0.8rem;
    color: var(--egypt-gold);
    opacity: 0.4;
}

.slab:hover {
    transform: scale(1.08);
    box-shadow: 
        0 8px 30px rgba(212, 175, 55, 0.6),
        inset 0 0 30px rgba(212, 175, 55, 0.3),
        0 0 20px rgba(212, 175, 55, 0.5);
}

.slab.dragging {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.8),
        inset 0 0 40px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.6);
    z-index: 100;
}

.slab.moving {
    z-index: 50;
}

/* ==================== 灰尘特效 ==================== */
.dust-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--egypt-sand);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    animation: dust-float 1s ease-out forwards;
}

@keyframes dust-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--dx, 20px), var(--dy, -30px)) scale(0);
        opacity: 0;
    }
}

.dust-cloud {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 50;
}

/* ==================== 控制面板 ==================== */
.control-panel {
    background: 
        linear-gradient(135deg, rgba(26, 61, 92, 0.95) 0%, rgba(44, 95, 141, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.1'%3E%3Cpath d='M40 0 L40 80 M0 40 L80 40'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cpath d='M20 20 L60 60 M60 20 L20 60'/%3E%3C/g%3E%3C/svg%3E");
    border: 3px solid var(--egypt-gold);
    border-radius: 15px;
    padding: 30px;
    min-width: 320px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.1);
    position: relative;
}

.control-panel::before {
    content: '𓏞 𓀀 𓏞';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--egypt-blue);
    padding: 0 15px;
    font-size: 1.2rem;
    color: var(--egypt-gold);
    letter-spacing: 10px;
    opacity: 0.8;
}

.control-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h3 {
    font-family: var(--font-heading);
    color: var(--egypt-gold);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.control-section h3::before {
    content: '𓀀';
    font-size: 1.8rem;
    color: var(--egypt-gold-light);
    animation: glow 2s ease-in-out infinite;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    font-size: 1.1rem;
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 5px;
    background: var(--egypt-white);
    color: var(--egypt-black);
    font-family: var(--font-body);
}

.input-group input:focus {
    outline: none;
    border-color: var(--egypt-gold);
    box-shadow: 0 0 10px var(--egypt-gold);
}

.btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--egypt-gold) 0%, var(--egypt-ochre) 50%, var(--egypt-gold-dark) 100%);
    color: var(--egypt-black);
    border: 2px solid var(--egypt-gold-light);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--egypt-gold-light) 0%, var(--egypt-gold) 50%, var(--egypt-gold-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--egypt-blue) 0%, var(--egypt-lapis) 50%, var(--egypt-blue-dark) 100%);
    color: var(--egypt-white);
    border: 2px solid var(--egypt-gold);
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--egypt-lapis) 0%, var(--egypt-blue) 50%, var(--egypt-blue-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 95, 141, 0.6);
}

.texture-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.texture-option {
    width: 55px;
    height: 55px;
    border: 3px solid var(--egypt-gold-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.texture-option::before {
    content: '𓏞';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.texture-option:hover {
    border-color: var(--egypt-gold);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.texture-option:hover::before {
    opacity: 1;
}

.texture-option.selected {
    border-color: var(--egypt-gold-light);
    box-shadow: 
        0 0 20px var(--egypt-gold),
        inset 0 0 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.2);
}

.texture-option.selected::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--egypt-gold);
    color: var(--egypt-black);
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ==================== AI对话界面 ==================== */
.chat-container {
    background: 
        linear-gradient(135deg, rgba(107, 83, 68, 0.9) 0%, rgba(139, 115, 85, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Cpath d='M30 5 L30 55 M5 30 L55 30'/%3E%3C/g%3E%3C/svg%3E");
    border: 4px solid var(--egypt-gold);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(212, 175, 55, 0.1);
    position: relative;
    margin-bottom: 40px;
}

.chat-container::before {
    content: '𓏞 𓀀 𓏞 𓀀 𓏞';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--egypt-stone);
    padding: 0 20px;
    font-size: 1.3rem;
    color: var(--egypt-gold);
    letter-spacing: 15px;
    opacity: 0.8;
}

.chat-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--egypt-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    background: rgba(26, 26, 26, 0.3);
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--egypt-blue), var(--egypt-blue-dark));
    color: var(--egypt-white);
    border: 2px solid var(--egypt-gold);
}

.chat-message.bot .message-content {
    background: linear-gradient(135deg, var(--egypt-stone), var(--egypt-stone-dark));
    color: var(--egypt-white);
    border: 2px solid var(--egypt-turquoise);
}

.chat-form {
    display: flex;
    gap: 15px;
}

#chat-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--egypt-gold);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.5);
    color: var(--egypt-white);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: var(--egypt-gold-light);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

#chat-input::placeholder {
    color: rgba(245, 241, 232, 0.5);
}

/* ==================== 神谕对话界面 ==================== */
.oracle-container {
    background: 
        linear-gradient(135deg, rgba(45, 35, 25, 0.95) 0%, rgba(60, 45, 30, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.15'%3E%3Ccircle cx='30' cy='30' r='25'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Cpath d='M30 5 L30 55 M5 30 L55 30'/%3E%3C/g%3E%3C/svg%3E");
    border: 4px solid var(--egypt-gold);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(212, 175, 55, 0.15);
    position: relative;
    margin-bottom: 40px;
}

.oracle-container::before {
    content: '𓂀 𓏞 𓂀 𓏞 𓂀';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--egypt-stone-dark);
    padding: 0 20px;
    font-size: 1.3rem;
    color: var(--egypt-gold);
    letter-spacing: 15px;
    opacity: 0.9;
}

.oracle-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--egypt-gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.oracle-messages {
    height: 300px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.4);
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oracle-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.oracle-message.user {
    justify-content: flex-end;
}

.oracle-message.oracle {
    justify-content: flex-start;
}

.oracle-message.oracle .message-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(184, 134, 11, 0.3) 100%);
    border: 1px solid var(--egypt-gold);
    color: var(--egypt-gold-light);
}

.oracle-message.slab-info .message-content {
    background: rgba(64, 224, 208, 0.2);
    border: 1px solid var(--egypt-turquoise);
    color: var(--egypt-turquoise);
    font-size: 0.9rem;
}

.oracle-message.system .message-content {
    background: rgba(50, 205, 50, 0.2);
    border: 1px solid #32CD32;
    color: #90EE90;
    font-size: 0.85rem;
}

.oracle-message.error .message-content {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid #DC143C;
    color: #FF6B6B;
}

.oracle-form {
    display: flex;
    gap: 15px;
}

#oracle-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--egypt-gold);
    border-radius: 10px;
    background: rgba(15, 15, 15, 0.6);
    color: var(--egypt-gold-light);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

#oracle-input:focus {
    outline: none;
    border-color: var(--egypt-gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

#oracle-input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

/* ==================== 任务管理 - 埃及复古壁画2D风格 ==================== */
.todos-container {
    background:
        linear-gradient(135deg, rgba(139, 90, 43, 0.95) 0%, rgba(194, 140, 80, 0.95) 50%, rgba(139, 90, 43, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.8' opacity='0.15'%3E%3Cpath d='M0 50 Q25 30 50 50 T100 50'/%3E%3Cpath d='M0 60 Q25 40 50 60 T100 60'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3C/g%3E%3C/svg%3E");
    border: 6px solid var(--egypt-gold);
    border-radius: 4px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(139, 90, 43, 0.3);
    position: relative;
}

/* 纸莎草卷轴效果边框 */
.todos-container::before {
    content: '𓏞 𓀀 𓏞 𓀀 𓏞';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #C28C50 0%, #8B5A2B 100%);
    padding: 5px 25px;
    font-size: 1.4rem;
    color: var(--egypt-gold);
    letter-spacing: 12px;
    border: 3px solid var(--egypt-gold);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.todos-header {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--egypt-gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--egypt-gold);
    padding-bottom: 15px;
}

.todos-header::before {
    content: '𓏞';
    font-size: 2.2rem;
    color: var(--egypt-gold-light);
}

/* 大任务表单 */
.main-task-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 4px;
}

.todo-form input {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 3px solid var(--egypt-gold-dark);
    border-radius: 4px;
    background: var(--egypt-white);
    color: var(--egypt-black);
    font-family: var(--font-body);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.todo-form input:focus {
    outline: none;
    border-color: var(--egypt-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 任务列表 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 大任务项 - 石板风格 */
.main-task-item {
    background:
        linear-gradient(135deg, rgba(107, 68, 35, 0.9) 0%, rgba(139, 90, 43, 0.9) 50%, rgba(107, 68, 35, 0.9) 100%);
    border: 4px solid var(--egypt-gold);
    border-radius: 4px;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
}

/* 石板纹理 */
.main-task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
}

.main-task-item:hover {
    border-color: var(--egypt-gold-light);
    box-shadow:
        0 12px 35px rgba(212, 175, 55, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.main-task-item.completed {
    opacity: 0.85;
    border-color: var(--egypt-green);
}

.main-task-item.completed .main-task-title {
    text-decoration: line-through;
    color: var(--egypt-green);
}

/* 大任务头部 */
.main-task-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--egypt-gold-dark);
}

.main-task-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.main-task-checkbox {
    width: 28px;
    height: 28px;
    cursor: pointer;
    accent-color: var(--egypt-gold);
    border: 3px solid var(--egypt-gold);
}

.main-task-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.main-task-content {
    flex: 1;
}

.main-task-title {
    font-size: 1.25rem;
    color: var(--egypt-white);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-task-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.subtask-count {
    color: var(--egypt-gold-light);
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--egypt-gold-dark);
}

.completion-status {
    color: var(--egypt-turquoise);
    font-weight: bold;
}

.main-task-item.completed .completion-status {
    color: var(--egypt-green);
}

.main-task-actions {
    display: flex;
    gap: 10px;
}

/* 子任务表单 */
.subtask-form {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--egypt-gold-dark);
}

.subtask-form input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 4px;
    background: var(--egypt-white);
    color: var(--egypt-black);
}

/* 子任务列表 */
.subtask-list {
    padding: 15px 20px 20px 60px;
    background: rgba(0, 0, 0, 0.1);
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background:
        linear-gradient(135deg, rgba(194, 140, 80, 0.6) 0%, rgba(139, 90, 43, 0.6) 100%);
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.subtask-item:hover {
    border-color: var(--egypt-gold);
    background:
        linear-gradient(135deg, rgba(194, 140, 80, 0.8) 0%, rgba(139, 90, 43, 0.8) 100%);
}

.subtask-item.completed {
    opacity: 0.7;
    border-color: var(--egypt-green);
}

.subtask-item.completed .subtask-title {
    text-decoration: line-through;
    color: var(--egypt-green);
}

.subtask-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--egypt-gold);
}

.subtask-title {
    flex: 1;
    font-size: 1rem;
    color: var(--egypt-white);
}

/* 按钮样式 */
.btn-small {
    padding: 8px 14px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--egypt-blue) 0%, var(--egypt-lapis) 100%);
    color: var(--egypt-white);
    border: 2px solid var(--egypt-gold);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--egypt-lapis) 0%, var(--egypt-blue) 100%);
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #8B2E2E 0%, #5C1E1E 100%);
    color: var(--egypt-white);
    border: 2px solid #A04040;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #A04040 0%, #8B2E2E 100%);
    box-shadow: 0 4px 15px rgba(139, 46, 46, 0.5);
}

/* 统计面板 - 壁画风格 */
.stats-panel {
    background:
        linear-gradient(135deg, rgba(26, 61, 92, 0.8) 0%, rgba(44, 95, 141, 0.8) 100%);
    border: 3px solid var(--egypt-gold);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--egypt-gold-dark);
    border-radius: 4px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--egypt-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-number.completed {
    color: var(--egypt-green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--egypt-white);
    opacity: 0.9;
    margin-top: 5px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.15);
    border: 3px dashed var(--egypt-gold-dark);
    border-radius: 4px;
}

.empty-icon {
    font-size: 4rem;
    color: var(--egypt-gold);
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.2rem;
    color: var(--egypt-white);
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .main-task-header {
        flex-wrap: wrap;
    }

    .main-task-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .subtask-list {
        padding-left: 20px;
    }
}

/* ==================== 词块仓库 ==================== */
.inventory-container {
    background: 
        linear-gradient(135deg, rgba(45, 60, 80, 0.9) 0%, rgba(60, 80, 100, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.1'%3E%3Crect x='10' y='10' width='40' height='40'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
    border: 4px solid var(--egypt-gold);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(212, 175, 55, 0.1);
    position: relative;
    margin-top: 40px;
}

.inventory-container::before {
    content: '𓏛 𓂋 𓏛 𓂋 𓏛';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--egypt-stone);
    padding: 0 20px;
    font-size: 1.3rem;
    color: var(--egypt-gold);
    letter-spacing: 15px;
    opacity: 0.8;
}

.inventory-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--egypt-gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.inventory-section {
    margin-bottom: 30px;
}

.inventory-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--egypt-gold-light);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--egypt-gold-dark);
}

.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--egypt-gold-dark);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--egypt-gold-dark);
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--egypt-white);
}

.stat-value.used { color: #FF6B6B; }
.stat-value.available { color: #90EE90; }
.stat-value.permanent { color: var(--egypt-gold); }
.stat-value.temp { color: var(--egypt-turquoise); }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--egypt-gold-dark);
}

.slot-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.slot-cell.available {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.3) 0%, rgba(34, 139, 34, 0.3) 100%);
    border: 1px solid rgba(50, 205, 50, 0.5);
}

.slot-cell.used {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3) 0%, rgba(139, 0, 0, 0.3) 100%);
    border: 1px solid rgba(220, 20, 60, 0.5);
}

.slot-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.owned-slabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.slab-item {
    position: relative;
    background: linear-gradient(135deg, var(--egypt-stone) 0%, var(--egypt-stone-dark) 100%);
    border: 2px solid var(--egypt-gold);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slab-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.slab-item.permanent {
    border-color: var(--egypt-gold);
}

.slab-item.temporary {
    border-color: var(--egypt-turquoise);
    opacity: 0.9;
}

.slab-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.slab-code {
    display: block;
    font-size: 0.8rem;
    color: var(--egypt-gold);
    font-weight: bold;
}

.temp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--egypt-turquoise);
    color: var(--egypt-black);
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 5px;
}

.unlocked-slabs {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.unlocked-category h4 {
    font-size: 0.95rem;
    color: var(--egypt-gold-dark);
    margin-bottom: 15px;
}

.unlocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
}

.unlocked-item {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--egypt-gold-dark);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    opacity: 0.6;
    filter: grayscale(50%);
}

.unlocked-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 3px;
}

.unlocked-item .slab-code {
    font-size: 0.7rem;
}

.lock-icon {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
}

.inventory-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#unlock-slab-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ==================== 页脚 ==================== */
.main-footer {
    background: 
        linear-gradient(180deg, var(--egypt-blue) 0%, var(--egypt-lapis) 50%, var(--egypt-blue-dark) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='0.15'%3E%3Cpath d='M0 50 L100 50 M50 0 L50 100'/%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3C/g%3E%3C/svg%3E");
    border-top: 4px solid var(--egypt-gold);
    padding: 50px 20px 25px;
    margin-top: 60px;
    position: relative;
}

.main-footer::before {
    content: '𓇼 𓀀 𓏞 𓉐 𓃀 𓆣 𓄤 𓇼';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    color: var(--egypt-gold);
    letter-spacing: 20px;
    opacity: 0.7;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--egypt-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--egypt-white);
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--egypt-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--egypt-gold);
}

.hieroglyphs-decoration {
    font-size: 2rem;
    letter-spacing: 10px;
    color: var(--egypt-gold);
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--egypt-gold-dark);
}

.footer-bottom p {
    color: var(--egypt-white);
    opacity: 0.7;
    font-size: 0.9rem;
}

.decorative-line {
    margin-top: 10px;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--egypt-gold);
}

/* ==================== 提示消息 ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--egypt-blue) 0%, var(--egypt-blue-dark) 100%);
    border: 2px solid var(--egypt-gold);
    border-radius: 8px;
    color: var(--egypt-white);
    font-family: var(--font-body);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-color: var(--egypt-green);
}

.toast.error {
    border-color: var(--egypt-red);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-area {
        flex-direction: column;
        align-items: center;
    }
    
    /* 棋盘尺寸响应式调整 - 保持占据屏幕 1/3 以上 */
    :root {
        --slab-size: min(7vh, 55px);
        --grid-gap: 6px;
    }
    
    .slab-grid {
        grid-template-columns: repeat(6, var(--slab-size));
        grid-template-rows: repeat(6, var(--slab-size));
        padding: 12px;
    }
    
    .slab-game-container {
        padding: 20px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .control-panel {
        min-width: 280px;
        padding: 20px;
    }
    
    .texture-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    :root {
        --slab-size: min(6vh, 45px);
        --grid-gap: 4px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2.2rem;
    }
    
    .game-title {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .game-title::before,
    .game-title::after {
        font-size: 1.5rem;
    }
    
    .slab-grid {
        padding: 8px;
    }
    
    .control-panel {
        min-width: 100%;
    }
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content > * {
    animation: fadeIn 0.5s ease-out;
}

/* 莲花纹样装饰 */
.lotus-decoration {
    position: fixed;
    font-size: 3rem;
    color: var(--egypt-gold);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.lotus-top-left {
    top: 100px;
    left: 50px;
    animation: glow 4s ease-in-out infinite;
}

.lotus-top-right {
    top: 100px;
    right: 50px;
    animation: glow 4s ease-in-out infinite reverse;
}

.lotus-bottom-left {
    bottom: 200px;
    left: 50px;
    animation: glow 5s ease-in-out infinite 1s;
}

.lotus-bottom-right {
    bottom: 200px;
    right: 50px;
    animation: glow 5s ease-in-out infinite reverse 1s;
}

/* 纸莎草纹样 */
.papyrus-decoration {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 象形文字边框装饰 */
.hieroglyphic-border {
    position: fixed;
    left: 10px;
    top: 100px;
    bottom: 100px;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-size: 1.5rem;
    color: var(--egypt-gold);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.hieroglyphic-border.right {
    left: auto;
    right: 10px;
}
