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

:root {
    --wood-dark: #2c1810;
    --wood-medium: #4a2c17;
    --wood-light: #6b3d1f;
    --red-accent: #8b1a1a;
    --gold: #c9a227;
    --gold-light: #e8c84a;
    --paper: #f5f0e6;
    --paper-dark: #e8e0d0;
    --ink: #2d2d2d;
    --ink-light: #4a4a4a;
}

body {
    font-family: "Microsoft YaHei", "SimSun", serif;
    background: linear-gradient(180deg, #1a0f0a 0%, #2c1810 50%, #1a0f0a 100%);
    min-height: 100vh;
    color: var(--paper);
    overflow-x: hidden;
    position: relative;
}

/* 背景纹样 */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(139, 26, 26, 0.03) 50px,
            rgba(139, 26, 26, 0.03) 52px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(201, 162, 39, 0.02) 50px,
            rgba(201, 162, 39, 0.02) 52px
        );
    pointer-events: none;
    z-index: 0;
}

.bg-clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 100 Q40 80 60 100 T100 100 T140 100 T180 100' stroke='rgba(201,162,39,0.05)' fill='none' stroke-width='2'/%3E%3Cpath d='M20 120 Q40 100 60 120 T100 120 T140 120 T180 120' stroke='rgba(201,162,39,0.03)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* 主体容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}

/* ========== 门头区域 ========== */
.gateway {
    position: relative;
    text-align: center;
    padding: 0;
    margin-bottom: 0;
}

/* 实景图容器 */
.mansion-image {
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(201, 162, 39, 0.3);
    border: 3px solid var(--gold);
    margin-top: 30px;
    margin-bottom: 60px;
}

.mansion-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

/* 牌匾叠加层 */
.plaque-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 500px;
}

.plaque {
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    border: 4px solid var(--gold);
    border-radius: 8px;
    padding: 18px 35px;
    display: inline-block;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        inset 0 2px 10px rgba(201, 162, 39, 0.3),
        0 0 60px rgba(201, 162, 39, 0.4);
    position: relative;
}

.plaque::before,
.plaque::after {
    content: '❖';
    position: absolute;
    color: var(--gold);
    font-size: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.plaque::before {
    left: -50px;
}

.plaque::after {
    right: -50px;
}

.plaque-title {
    font-size: 52px;
    color: var(--gold);
    letter-spacing: 15px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(201, 162, 39, 0.5);
    margin: 0;
    font-weight: bold;
}


/* 屋檐 */
.roof {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 60px solid var(--wood-dark);
}

.roof::after {
    content: '';
    position: absolute;
    top: 65px;
    left: -220px;
    width: 440px;
    height: 20px;
    background: var(--wood-medium);
    border-radius: 10px;
}

/* 牌匾 */
.plaque {
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    border: 4px solid var(--gold);
    border-radius: 8px;
    padding: 30px 60px;
    display: inline-block;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(201, 162, 39, 0.3),
        0 0 60px rgba(201, 162, 39, 0.2);
    position: relative;
    margin: 20px 0;
}

.plaque::before,
.plaque::after {
    content: '❖';
    position: absolute;
    color: var(--gold);
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.plaque::before {
    left: 20px;
}

.plaque::after {
    right: 20px;
}

.plaque-title {
    font-size: 64px;
    color: var(--gold);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(201, 162, 39, 0.5);
    letter-spacing: 20px;
    font-weight: bold;
    writing-mode: horizontal-tb;
}

/* 灯笼 */
.lantern {
    position: absolute;
    top: 80px;
    width: 60px;
    height: 100px;
}

.lantern-left {
    left: 10%;
}

.lantern-right {
    right: 10%;
}

.lantern-body {
    width: 50px;
    height: 70px;
    background: linear-gradient(180deg, var(--red-accent) 0%, #5c0f0f 100%);
    border-radius: 50% 50% 45% 45%;
    border: 2px solid var(--gold);
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.6);
    animation: lanternGlow 3s ease-in-out infinite;
}

.lantern-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background: rgba(255, 200, 100, 0.3);
    border-radius: 50%;
}

.lantern-tassel {
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--red-accent) 100%);
    margin: 0 auto;
}

@keyframes lanternGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(139, 26, 26, 0.6); }
    50% { box-shadow: 0 0 50px rgba(139, 26, 26, 0.9); }
}

/* 对联 */
.couplet {
    position: absolute;
    top: 100px;
    background: var(--red-accent);
    border: 2px solid var(--gold);
    padding: 20px 15px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.couplet p {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.couplet-left {
    left: 0;
}

.couplet-right {
    right: 0;
}

/* ========== 主内容区 ========== */
.hall {
    background: linear-gradient(180deg, var(--paper-dark) 0%, var(--paper) 50%, var(--paper-dark) 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(139, 26, 26, 0.1);
    border: 3px solid var(--wood-light);
    position: relative;
}

.hall::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    pointer-events: none;
}

/* 章节样式 */
.section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(139, 26, 26, 0.2);
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--wood-dark);
    letter-spacing: 8px;
    position: relative;
    padding: 0 20px;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-header h2::before {
    left: 0;
}

.section-header h2::after {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament {
    color: var(--red-accent);
    font-size: 24px;
}

.section-content {
    color: var(--ink);
    line-height: 2;
    font-size: 18px;
}

.intro {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--wood-dark);
    font-weight: bold;
}

.desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 技能卡片 ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.skill-card {
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
    border: 2px solid var(--wood-light);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.2);
    border-color: var(--red-accent);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 20px;
    color: var(--wood-dark);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.skill-card p {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.6;
}

/* ========== 藏品列表 ========== */
.collection-list {
    margin-top: 30px;
}

.collection-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.1) 50%, transparent 100%);
    border-left: 3px solid var(--red-accent);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.collection-item:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.2) 50%, transparent 100%);
    padding-left: 30px;
}

.item-icon {
    font-size: 40px;
}

.item-info h4 {
    font-size: 20px;
    color: var(--wood-dark);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.item-info p {
    font-size: 14px;
    color: var(--ink-light);
}

/* ========== 联系方式 ========== */
.contact-info {
    text-align: center;
    padding: 20px;
}

.contact-text {
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--wood-dark);
    border-radius: 8px;
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--red-accent);
    transform: scale(1.05);
}

.contact-icon {
    font-size: 24px;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--paper);
    opacity: 0.7;
}

.footer p {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.footer-decor {
    color: var(--gold);
    font-size: 20px;
}

.footer-icp {
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 15px;
    opacity: 1 !important;
}

.footer-icp a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ========== 石狮子入口按钮 ========== */
.shizi-entry {
    padding: 50px 0;
    text-align: center;
    border-bottom: none;
}

.shizi-button-wrapper {
    display: inline-block;
}

.shizi-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(180deg, var(--wood-medium) 0%, var(--wood-dark) 100%);
    border: 3px solid var(--gold);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gold);
    font-size: 24px;
    letter-spacing: 6px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(201, 162, 39, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shizi-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 162, 39, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.shizi-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(139, 26, 26, 0.4),
        0 0 60px rgba(201, 162, 39, 0.3);
    border-color: var(--red-accent);
}

.shizi-button:hover::before {
    left: 100%;
}

.shizi-icon {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.shizi-text {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* ========== 花瓣效果 ========== */
#petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .gateway {
        padding: 40px 0 30px;
    }
    
    .roof {
        border-left-width: 150px;
        border-right-width: 150px;
        border-bottom-width: 45px;
    }
    
    .roof::after {
        left: -170px;
        width: 340px;
    }
    
    .plaque {
        padding: 20px 40px;
    }
    
    .plaque-title {
        font-size: 42px;
        letter-spacing: 10px;
    }
    
    .lantern {
        display: none;
    }
    
    .couplet {
        display: none;
    }
    
    .hall {
        padding: 25px 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .section-content {
        font-size: 16px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skill-card {
        padding: 20px 15px;
    }
    
    .skill-icon {
        font-size: 36px;
    }
    
    .skill-card h3 {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .plaque-title {
        font-size: 36px;
        letter-spacing: 5px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 技能卡片链接样式 ========== */
.skill-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.skill-card-link:hover {
    text-decoration: none;
}

/* ========== 对称技能卡片 ========== */
.skills-grid-symmetric {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.skill-card-symmetric {
    background: linear-gradient(180deg, #2c1810 0%, #4a2c17 100%);
    border: 4px solid #c9a227;
    border-radius: 8px;
    padding: 40px 50px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    flex: 1;
}

.skill-card-symmetric:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
    border-color: #e94560;
}

.skill-card-symmetric p {
    color: #e8e0d0;
    font-size: 32px;
    font-family: "LiSu", "隶书", "STLiti", "SimLi", "Kaiti", "楷体", "STKaiti", serif;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .skills-grid-symmetric {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 90%;
    }
    
    .skill-card-symmetric {
        width: 90%;
        max-width: 350px;
        padding: 40px 50px;
    }
}

/* ========== 技能卡片链接样式 ========== */
.skill-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.skill-card-link:hover {
    text-decoration: none;
}

.skill-card-link .skill-card-symmetric {
    margin: 0;
}
