/* ========================================
   起卦坛核心区域
   Divination Altar Section
   ======================================== */

.divination-section {
    padding: 100px 20px;
    background: linear-gradient(180deg,
        rgba(26, 26, 46, 0.95) 0%,
        var(--tj-bg-mid) 50%,
        var(--tj-bg-light) 100%
    );
    position: relative;
}

/* 背景装饰 - 古代钦天监场景虚化 */
.altar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.altar-title {
    font-size: clamp(32px, 6vw, 48px);
    color: var(--tj-gold-primary);
    letter-spacing: 0.4em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.altar-title::before,
.altar-title::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--tj-gold-primary);
    opacity: 0.5;
}

.altar-title::before {
    left: -40px;
}

.altar-title::after {
    right: -40px;
}

.altar-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2em;
}

/* 起卦坛主体 */
.altar-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.altar-card {
    background: linear-gradient(135deg,
        rgba(30, 30, 50, 0.95) 0%,
        rgba(20, 20, 40, 0.98) 100%
    );
    border-radius: 20px;
    padding: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 0 60px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
}

/* 边框装饰 */
.altar-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    pointer-events: none;
}

/* 四角装饰 */
.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.corner-decoration.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* 输入区域 */
.input-area {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    text-align: center;
    font-size: 18px;
    color: var(--tj-gold-primary);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.query-input {
    width: 100%;
    min-height: 150px;
    padding: 25px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    color: var(--tj-text-light);
    font-size: 18px;
    font-family: inherit;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s ease;
}

.query-input:focus {
    outline: none;
    border-color: var(--tj-gold-primary);
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.1),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.query-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* 呼吸光标 */
.query-input:focus::after {
    content: '|';
    animation: cursorBlink 1s infinite;
}

/* 快速选择标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.quick-tag {
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.quick-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--tj-gold-primary);
    transform: translateY(-2px);
}

.quick-tag.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--tj-gold-primary);
    color: var(--tj-gold-primary);
}

/* 起卦按钮 */
.divination-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg,
        var(--tj-gold-primary) 0%,
        var(--tj-gold-dark) 100%
    );
    color: var(--tj-bg-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 40px rgba(212, 175, 55, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s;
}

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

.divination-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(212, 175, 55, 0.5),
        0 0 0 2px rgba(212, 175, 55, 0.4);
}

.divination-btn:active {
    transform: translateY(-1px);
}

.divination-btn i {
    font-size: 24px;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 能量聚集动画 */
.divination-btn.energizing {
    animation: energyGather 1s ease infinite;
}

@keyframes energyGather {
    0%, 100% { 
        box-shadow: 
            0 10px 40px rgba(212, 175, 55, 0.3),
            0 0 0 1px rgba(212, 175, 55, 0.3);
    }
    50% { 
        box-shadow: 
            0 10px 60px rgba(212, 175, 55, 0.6),
            0 0 0 3px rgba(212, 175, 55, 0.5),
            0 0 40px rgba(212, 175, 55, 0.3);
    }
}

/* 提示文字 */
.altar-hint {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.altar-hint i {
    color: var(--tj-gold-primary);
    margin-right: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .divination-section {
        padding: 60px 20px;
    }
    
    .altar-card {
        padding: 30px 20px;
    }
    
    .altar-title::before,
    .altar-title::after {
        display: none;
    }
    
    .query-input {
        min-height: 120px;
        padding: 15px;
        font-size: 16px;
    }
    
    .quick-tags {
        gap: 8px;
    }
    
    .quick-tag {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .divination-btn {
        font-size: 18px;
        letter-spacing: 0.2em;
    }
}

/* ========================================
   快速标签提示区域
   ======================================== */

.quick-tags-hint {
    margin-bottom: 30px;
    text-align: center;
}

.hint-text {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

/* 快速标签样式优化 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.quick-tag {
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    position: relative;
}

.quick-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--tj-gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.quick-tag.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--tj-gold-primary);
    color: var(--tj-gold-primary);
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 10px rgba(212, 175, 55, 0.1);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .hint-text {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .quick-tags {
        gap: 8px;
    }
    
    .quick-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}
