/* 古风主题样式 */

/* 古风字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap');

/* 古风色彩变量 */
:root {
    --ancient-gold: #d4af37;
    --ancient-brown: #73161C;
    --ancient-cream: #f4e4bc;
    --ancient-red: #73161C;
    --ancient-green: #228b22;
    --ancient-blue: #4682b4;
    --paper-bg: #faf8f5;
    --ink-black: #2c2c2c;
    --primary-color: #73161C;
    --primary-light: #8b2329;
    --primary-dark: #5c1116;
}

/* 古风装饰元素 */
.ancient-border {
    border: 2px solid var(--ancient-gold);
    border-image: linear-gradient(45deg, var(--ancient-gold), var(--ancient-brown)) 1;
    position: relative;
}

.ancient-border::before,
.ancient-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ancient-gold);
}

.ancient-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.ancient-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* 古风纹理背景 */
.ancient-texture {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(244, 228, 188, 0.1) 0%, transparent 50%);
}

/* 古风标题样式 */
.ancient-title {
    font-family: 'Noto Serif SC', serif;
    position: relative;
    text-align: center;
    color: var(--ancient-brown);
}

.ancient-title::before,
.ancient-title::after {
    content: '◆';
    color: var(--ancient-gold);
    font-size: 0.8em;
    margin: 0 15px;
}

/* 古风卡片样式 */
.ancient-card {
    background: var(--paper-bg);
    border: 1px solid var(--ancient-cream);
    border-radius: 8px;
    box-shadow: 
        0 2px 8px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(244, 228, 188, 0.5);
    position: relative;
    overflow: hidden;
}

.ancient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--ancient-gold) 20%, 
        var(--ancient-brown) 50%, 
        var(--ancient-gold) 80%, 
        transparent 100%);
}

/* 古风按钮样式 */
.ancient-btn {
    background: linear-gradient(135deg, var(--ancient-gold) 0%, #b8941f 100%);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

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

.ancient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(115, 22, 28, 0.3);
}

/* 古风分割线 */
.ancient-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--ancient-gold) 20%, 
        var(--ancient-brown) 50%, 
        var(--ancient-gold) 80%, 
        transparent 100%);
    margin: 30px 0;
    position: relative;
}

.ancient-divider::before {
    content: '❋';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--paper-bg);
    color: var(--ancient-gold);
    padding: 0 15px;
    font-size: 1.2em;
}

/* 古风图标样式 */
.ancient-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ancient-gold), var(--ancient-brown));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin-bottom: 15px;
    position: relative;
}

.ancient-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--ancient-cream);
    border-radius: 50%;
    opacity: 0.5;
}

/* 古风文本样式 */
.ancient-text {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.8;
    color: var(--ink-black);
}

.ancient-text::first-letter {
    font-size: 1.5em;
    color: var(--ancient-red);
    font-weight: bold;
}

/* 古风引用样式 */
.ancient-quote {
    border-left: 4px solid var(--ancient-gold);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--ancient-brown);
    position: relative;
}

.ancient-quote::before {
    content: '"';
    font-size: 3em;
    color: var(--ancient-gold);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.3;
}

/* 古风表单样式 */
.ancient-input {
    border: 2px solid var(--ancient-cream);
    border-radius: 8px;
    padding: 12px 15px;
    background: var(--paper-bg);
    color: var(--ink-black);
    font-family: 'Noto Serif SC', serif;
    transition: border-color 0.3s ease;
}

.ancient-input:focus {
    outline: none;
    border-color: var(--ancient-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 古风动画效果 */
@keyframes ancient-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ancient-fade-in {
    animation: ancient-fade-in 0.6s ease-out;
}

/* 古风滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--paper-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ancient-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ancient-brown);
}

/* 古风选择样式 */
::selection {
    background: var(--ancient-gold);
    color: var(--ancient-brown);
}

/* 古风链接样式 */
.ancient-link {
    color: var(--ancient-brown);
    text-decoration: none;
    border-bottom: 1px dotted var(--ancient-gold);
    transition: all 0.3s ease;
}

.ancient-link:hover {
    color: var(--ancient-gold);
    border-bottom-style: solid;
}
