* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f7f4;
    font-family: 'Noto Sans SC', sans-serif;
    padding: 0;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="rgb(249,247,244)" /><path d="M0,100 Q50,80 100,100 T200,100" stroke="rgba(210,200,180,0.1)" stroke-width="1" fill="none" /></svg>');
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* 导航栏样式 */
nav {
    background-color: #333;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3366ff;
}

.active {
    border-bottom: 2px solid #3366ff;
    padding-bottom: 3px;
}

/* 内容区域样式 */
.main-content {
    padding: 2rem 1rem;
    flex: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><rect width="300" height="300" fill="rgba(255,255,255,0)" /><path d="M0,0 L300,300 M300,0 L0,300" stroke="rgba(200,180,150,0.03)" stroke-width="1" stroke-dasharray="2,8" /></svg>');
    background-size: 300px 300px;
    background-repeat: repeat;
}

h1 {
    text-align: center;
    margin: 20px 0 40px;
    font-weight: 900;
    font-size: 2.5rem;
    color: #222;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* h1::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, rgba(141, 25, 43, 0.1), rgba(141, 25, 43, 0.7), rgba(141, 25, 43, 0.1));
    border-radius: 3px;
} */

.intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 25px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #3366ff;
}

.footer-text {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* 注意：网格容器和卡片基本样式已移至共享组件 card.css */

/* 设计1: 垂直书写 */
.design-1 {
    background: #f8f3e9;
    height: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    line-height: 1.8;
    letter-spacing: 2px;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.vertical-line {
    margin: 0 15px;
}

.vertical-line:first-child {
    font-weight: 300;
}

.vertical-line:nth-child(2) {
    font-weight: 600;
    color: #8D192B;
}

/* 设计2: 水墨风 */
.design-2 {
    background: #f5f5f5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgb(245,245,245)" /><circle cx="50" cy="50" r="40" stroke="rgba(0,0,0,0.03)" stroke-width="1" fill="none" /></svg>');
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.ink-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 5rem;
    color: #000;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    position: relative;
    z-index: 2;
    animation: ink-flow 0.8s ease-out forwards;
}

.ink-text::before {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: #cc0000;
    border-radius: 3px;
    opacity: 0.8;
    z-index: -1;
    animation: seal-appear 1.2s ease-out forwards;
}

.ink-text::after {
    content: "";
    position: absolute;
    top: 10%;
    left: 10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: -2;
    opacity: 0;
    transform: scale(0.5);
    animation: ink-spread 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes ink-flow {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-8deg);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-5deg);
        filter: blur(0);
    }
}

@keyframes seal-appear {
    0% {
        transform: scale(0) rotate(30deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
}

@keyframes ink-spread {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* 设计3: 格子排版 */
.design-3 {
    background: #fff;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
    padding: 10px;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'ZCOOL QingKe HuangYou', sans-serif;
    font-size: 1.8rem;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: #333;
    color: white;
    transform: scale(1.05);
    z-index: 2;
}

/* 设计4: 层叠文字 */
.design-4 {
    background: #f8f8f8;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stacked-container {
    position: relative;
    height: 100px;
    width: 100%;
}

.stacked-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.15;
    transform-origin: center;
    white-space: nowrap;
}

.stacked-text:nth-child(1) {
    top: 10px;
    color: #ff3366;
    transform: scale(1.2);
}

.stacked-text:nth-child(2) {
    top: 30px;
    color: #3366ff;
    transform: scale(1.1);
}

.stacked-text:nth-child(3) {
    top: 50px;
    color: #333;
    transform: scale(1);
    opacity: 0.8;
}

/* 设计5: 环形文字 */
.design-5 {
    background: linear-gradient(135deg, #f8f3e9, #f0e6d3);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.circle-container {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: circle-pulse 8s ease-in-out infinite;
}

.circle-text {
    position: absolute;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    transform-origin: center;
    color: #5c4321;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 250, 240, 0.6);
    border-radius: 50%;
}

.circle-center {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: #8D192B;
    z-index: 2;
    animation: center-pulse 4s ease-in-out infinite;
    text-shadow: 2px 2px 10px rgba(141, 25, 43, 0.3);
}

@keyframes circle-text-rotate {
    0% {
        transform: translate(var(--x), var(--y)) rotate(0deg);
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(-360deg);
    }
}

@keyframes center-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes circle-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(141, 25, 43, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(141, 25, 43, 0.2);
    }
}

/* 设计6: 对角交错 */
.design-6 {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.diagonal-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotate(-30deg);
}

.diagonal-line {
    position: absolute;
    width: 400px;
    height: 40px;
    left: -100px;
    display: flex;
    align-items: center;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    white-space: nowrap;
    letter-spacing: 2px;
}

.diagonal-line:nth-child(1) {
    top: 40px;
    color: #111;
}

.diagonal-line:nth-child(2) {
    top: 90px;
    color: #555;
}

.diagonal-line:nth-child(3) {
    top: 140px;
    color: #999;
}

.diagonal-line:nth-child(4) {
    top: 190px;
    color: #ccc;
}

/* 设计7: 波浪文本 */
.design-7 {
    background: #fff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.wave-container {
    text-align: center;
}

.wave-text {
    font-family: 'ZCOOL KuaiLe', sans-serif;
    font-size: 2rem;
    display: inline-block;
    animation: wave-animation 2s infinite ease-in-out;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes wave-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 设计8: 镜像反射 */
.design-8 {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 50%, #e8e8e8 100%);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mirror-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mirror-text {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 5px;
}

.mirror-reflection {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #333;
    transform: rotateX(180deg);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(51,51,51,0.1) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
}

/* 设计9: 字体混搭 */
.design-9 {
    background: #fff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mixed-text {
    font-size: 1.8rem;
    text-align: center;
    line-height: 1.5;
}

.font-1 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 900;
}

.font-2 {
    font-family: 'ZCOOL XiaoWei', serif;
}

.font-3 {
    font-family: 'ZCOOL QingKe HuangYou', sans-serif;
}

.font-4 {
    font-family: 'Ma Shan Zheng', cursive;
}

.font-5 {
    font-family: 'ZCOOL KuaiLe', sans-serif;
}

/* 设计10: 装饰线框 */
.design-10 {
    background: #fcfcfc;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.framed-text {
    position: relative;
    padding: 30px;
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 3px solid #333;
    border-left: 3px solid #333;
}

.corner-tr {
    top: 0;
    right: 0;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid #333;
    border-left: 3px solid #333;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #333;
    border-right: 3px solid #333;
}

/* 新增设计11: 篆刻风格 */
.design-11 {
    background: #f5f1e9;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.seal-container {
    width: 180px;
    height: 180px;
    background: #cc0000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.seal-text {
    font-family: 'Ma Shan Zheng', cursive;
    color: white;
    font-size: 5rem;
    line-height: 1;
    transform: rotate(5deg);
}

.seal-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

/* 新增设计12: 书法动画 */
.design-12 {
    background: #f8f8f8;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calligraphy-container {
    height: 200px;
    width: 200px;
    position: relative;
}

.calligraphy-stroke {
    position: absolute;
    background: #000;
    transform-origin: center left;
}

.stroke-1 {
    width: 80px;
    height: 10px;
    top: 50px;
    left: 60px;
    animation: draw-stroke-1 3s infinite;
}

.stroke-2 {
    width: 80px;
    height: 10px;
    top: 100px;
    left: 60px;
    animation: draw-stroke-2 3s infinite;
}

.stroke-3 {
    width: 10px;
    height: 150px;
    top: 30px;
    left: 100px;
    animation: draw-stroke-3 3s infinite;
}

@keyframes draw-stroke-1 {
    0%, 20% { transform: scaleX(0); }
    30%, 100% { transform: scaleX(1); }
}

@keyframes draw-stroke-2 {
    0%, 30% { transform: scaleX(0); }
    40%, 100% { transform: scaleX(1); }
}

@keyframes draw-stroke-3 {
    0%, 50% { transform: scaleY(0); }
    60%, 100% { transform: scaleY(1); }
}

/* 新增设计13: 活字印刷 */
.design-13 {
    background: #e8e1d5;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.movable-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    width: 250px;
    height: 250px;
}

.type-block {
    background: #d3c7b1;
    border: 1px solid #aa9b88;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: #333;
    transform: rotate(calc(var(--r) * 1deg));
    transition: all 0.3s ease;
}

.type-block:hover {
    transform: translateY(-5px) rotate(0);
    box-shadow: 2px 7px 5px rgba(0, 0, 0, 0.15);
    background: #e6dfd3;
}

/* 新增设计14: 山水画意 */
.design-14 {
    background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.landscape-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mountain {
    position: absolute;
    background: linear-gradient(135deg, #333, #666);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.mountain-1 {
    width: 150px;
    height: 100px;
    left: 20%;
    bottom: 50px;
    background: linear-gradient(to bottom, #666, #333);
    opacity: 0.7;
    transform: skewX(-15deg);
}

.mountain-2 {
    width: 180px;
    height: 120px;
    right: 20%;
    bottom: 40px;
    background: linear-gradient(to bottom, #444, #222);
    opacity: 0.8;
    transform: skewX(15deg);
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    filter: blur(10px);
}

.cloud-1 {
    width: 80px;
    height: 30px;
    top: 50px;
    left: 30px;
    animation: cloud-drift-1 20s linear infinite;
}

.cloud-2 {
    width: 120px;
    height: 40px;
    top: 30px;
    right: 40px;
    animation: cloud-drift-2 25s linear infinite;
}

.cloud-3 {
    width: 60px;
    height: 25px;
    top: 70px;
    left: 140px;
    filter: blur(8px);
    opacity: 0.5;
    animation: cloud-drift-3 18s linear infinite;
}

.landscape-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 5rem;
    color: #333;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    animation: ink-appear 4s ease-out forwards;
}

@keyframes cloud-drift-1 {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(0); }
}

@keyframes cloud-drift-2 {
    0% { transform: translateX(0); }
    50% { transform: translateX(-70px); }
    100% { transform: translateX(0); }
}

@keyframes cloud-drift-3 {
    0% { transform: translateX(0); }
    50% { transform: translateX(40px); }
    100% { transform: translateX(0); }
}

@keyframes ink-appear {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* 新增设计15: 折扇展开 */
.design-15 {
    background: linear-gradient(to bottom, #f8f4e9, #eae2cb);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.fan-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fan-appear 1s ease-out forwards;
}

.fan-segment {
    position: relative;
    height: 120px;
    width: 32px;
    margin: 0 2px;
    background: linear-gradient(135deg, #e8d8a3, #d4bc85);
    border-left: 1px solid rgba(120, 90, 50, 0.5);
    border-right: 1px solid rgba(120, 90, 50, 0.3);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #3a2812;
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 0.5);
    transform-origin: bottom center;
    animation: fan-segment-open 1.2s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
    border-radius: 3px 3px 0 0;
}

/* 扇面水平展开动画 */
@keyframes fan-segment-open {
    0% {
        opacity: 0;
        transform: translateY(100px);
        height: 0;
    }
    70% {
        opacity: 0.8;
        transform: translateY(0);
        height: 130px; /* 稍微超出最终高度 */
    }
    85% {
        height: 110px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        height: 120px;
    }
}

/* 扇子整体出现动画 */
@keyframes fan-appear {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.fan-container:hover .fan-segment {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.fan-base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to bottom, #8B4513, #654321);
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.fan-base::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #8B4513;
    border-radius: 4px 4px 0 0;
}

/* 设计卡片样式 */
.design-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.design-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-light), var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 5;
}

.design-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large), 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(141, 25, 43, 0.1);
}

.design-card:hover::before {
    opacity: 1;
}

.circle-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
}

@keyframes orbit-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
