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

/* 汉堡菜单 - 优化版 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1E2026;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端导航 - 简化版 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #fffbe6 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 20px;
    list-style: none;
}

.mobile-nav ul li {
    margin: 15px 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #1E2026;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav ul li a:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #FFD700 100%);
    transform: translateX(10px);
}

/* 移动端导航图标 */
.mobile-nav a i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav a .fa-laptop { color: #2c3e50; }
.mobile-nav a .fa-sticky-note { color: #f1c40f; }
.mobile-nav a .fa-bed { color: #8b4513; }
.mobile-nav a .fa-motorcycle { color: #e74c3c; }
.mobile-nav a .fa-desktop { color: #34495e; }

.mobile-nav a:hover i {
    transform: translateX(5px) rotate(15deg);
    filter: brightness(1.2);
}

/* 移动端下拉菜单 */
.mobile-dropdown {
    background: rgba(240, 185, 11, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
}

.mobile-dropdown li {
    margin: 8px 0;
}

.mobile-dropdown a {
    padding: 10px 30px;
    font-size: 1rem;
}

.mobile-dropdown a .fa-coffee { color: #8b4513; }
.mobile-dropdown a .fa-hard-hat { color: #f39c12; }
.mobile-dropdown a .fa-briefcase { color: #2c3e50; }

.mobile-dropdown a:hover i {
    transform: translateX(3px) rotate(-10deg);
    filter: brightness(1.3);
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

body {
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #FFF8E1 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23F6C45D' fill-opacity='0.1'/%3E%3C/svg%3E");
}

/* 下拉菜单样式 - 横向布局版 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.dropdown-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #f0b90b;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* 导航图标颜色 */
nav a .fa-laptop { color: #2c3e50; }
nav a .fa-sticky-note { color: #f1c40f; }
nav a .fa-bed { color: #8b4513; }
nav a .fa-motorcycle { color: #e74c3c; }
nav a .fa-desktop { color: #34495e; }

nav a:hover i {
    transform: rotate(10deg) scale(1.1);
    filter: brightness(1.2);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #ffffff 0%, #fffbe6 100%);
    min-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), 0 0 0 3px #f0b90b;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    padding: 15px 20px;
    border: 2px solid #f0b90b;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 下拉菜单箭头 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f0b90b;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
}

.dropdown-menu li {
    margin: 0 10px;
    transform: none;
    position: relative;
    flex: 1;
}

/* 移除分割线，因为横向布局不需要 */
.dropdown-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, #f0b90b, transparent);
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #1E2026;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

/* 下拉菜单图标 */
.dropdown-menu a i {
    margin-right: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* 下拉菜单图标颜色 */
.dropdown-menu a .fa-coffee {
    color: #8b4513; /* 咖啡 - 棕色 */
}

.dropdown-menu a .fa-hard-hat {
    color: #f39c12; /* 安全帽 - 橙黄色（外卖小哥头盔） */
}

.dropdown-menu a .fa-briefcase {
    color: #2c3e50; /* 公文包 - 深色 */
}

.dropdown-menu a:hover i {
    transform: rotate(-5deg) scale(1.1);
    filter: brightness(1.3);
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.2), transparent);
    transition: left 0.5s ease;
}

.dropdown-menu a:hover::before {
    left: 100%;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #FFD700 100%);
    color: #1E2026;
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 5px 15px rgba(30, 32, 38, 0.3);
    font-weight: 700;
}

/* 为每个菜单项添加不同的悬停延迟 */
.dropdown-menu li:nth-child(1) a {
    transition-delay: 0s;
}

.dropdown-menu li:nth-child(2) a {
    transition-delay: 0.05s;
}

.dropdown-menu li:nth-child(3) a {
    transition-delay: 0.1s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6b6b;
    transform: scale(1.05);
}

ul {
    list-style: none;
}

button, .btn {
    background-color: #f0b90b;
    color: #1E2026;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid white;
    transition: all 0.3s ease;
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

button:hover, .btn:hover {
    background-color: #FFD700;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 7px 7px 0 #1E2026;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 C 20 0, 50 40, 100 20 L 100 0 L 0 0 Z' fill='%23fffbe6'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    background-repeat: repeat-x;
    z-index: 10;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    color: #f0b90b;
    text-shadow: 2px 2px 0 #1E2026;
    transform: rotate(-1deg);
}

h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 8px;
    background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 10px, #1E2026 10px, #1E2026 20px);
    margin: 15px auto;
    border-radius: 4px;
    transform: rotate(2deg);
}

/* 头部导航 - 简化版 */
header {
    background: white;
    box-shadow: 0 4px 0 #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo h1 {
    font-size: 2.5rem;
    color: #f0b90b;
    margin: 0;
    transform: rotate(-3deg);
    text-shadow: 2px 2px 0 #1E2026;
}

.logo p {
    font-size: 0.8rem;
    color: #666;
    transform: rotate(1deg);
}

/* 桌面导航 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li:nth-child(1) { transform: rotate(-2deg); }
nav ul li:nth-child(2) { transform: rotate(1deg); }
nav ul li:nth-child(3) { transform: rotate(-1deg); }
nav ul li:nth-child(4) { transform: rotate(1deg); }
nav ul li:nth-child(5) { transform: rotate(-1deg); }

nav a {
    color: #1E2026;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background: #f0b90b;
    color: #1E2026;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 #1E2026;
}

/* 英雄区域 */
.hero {
    background: repeating-linear-gradient(45deg, #f0b90b,#f0b90b 10px, #FFD700 10px, #FFD700 20px);
    color: #1E2026;
    text-align: center;
    padding: 0; /* 移除原有的padding */
    height: 600px; /* 设置固定高度为600px */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* 垂直居中内容 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.herofooter .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* 页脚链接图标颜色 */
.footer-links a i,
.social-icon i {
    transition: all 0.3s ease;
}

.footer-links a:hover i,
.social-icon:hover i {
    filter: brightness(1.2);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto; /* 移除最小高度限制 */
    padding: 0 20px;
    width: 100%;
}

.hero-image {
    flex: 0 0 400px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: -40px; /* 增加负边距，让图片更贴近左边 */
}

.palu-logo {
    width: 500px;
    height: 550px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite; /* 移除旋转动画，只保留浮动 */
    filter: drop-shadow(8px 8px 20px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
    margin-left: -200px; /* 图片本身也向左偏移 */
    transform: scale(1.2); /* 放大图片20%，但不影响布局空间 */
    transform-origin: left center; /* 设置缩放原点为左侧中心 */
}

.palu-logo:hover {
    transform: scale(1.25); /* 悬停时稍微再大一点 */
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-left: 0; /* 移除原有的padding-left */
    margin-left: -100px; /* 向左移动100px */
}

.hero-text h1 {
    font-size: 4.5rem; /* 增大字体 */
    margin-bottom: 30px;
    animation: wobble 2s ease infinite;
    text-shadow: 4px 4px 0 #333;
    transform: rotate(-2deg);
    text-align: left;
    line-height: 1.1;
    font-weight: 900; /* 增加字体粗细 */
}

.hero-text p {
    font-size: 1.5rem; /* 增大段落字体 */
    margin-bottom: 40px;
    max-width: none;
    animation: float 3s ease-in-out infinite;
    text-shadow: 2px 2px 0 #333;
    text-align: left;
    line-height: 1.4;
    font-weight: 600; /* 增加字体粗细 */
}

.hero-btn {
    background-color: #f0b90b;
    color: #1E2026;
    border: none;
    padding: 18px 35px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: 700;
    box-shadow: 8px 8px 0 #1E2026;
    border: 4px solid white;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hero-btn:hover {
    background-color: #FFD700;
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 10px 10px 0 #1E2026;
    animation: none;
}

/* 社区愿景 */
.vision {
    background-color: white;
}

.vision-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: all 0.3s ease;
    border: 3px dashed #f0b90b;
    transform: rotate(var(--card-rotation));
}

.card:nth-child(1) { --card-rotation: -2deg; }
.card:nth-child(2) { --card-rotation: 1deg; }
.card:nth-child(3) { --card-rotation: -1deg; }

.card:hover {
    transform: translateY(-10px) rotate(calc(var(--card-rotation) * -1));
    box-shadow: 8px 8px 0 #1E2026;
    border-style: solid;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #f0b90b;
    animation: bounce 2s ease infinite;
    display: inline-block;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f0b90b;
    text-shadow: 1px 1px 0 #1E2026;
}

.vision-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    line-height: 1.8;
    background-color: #f0b90b;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    transform: rotate(-1deg);
}

/* CA模块 - 精简版 */
.ca-module {
    background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 3px solid #1E2026;
    box-shadow: 0 10px 30px rgba(30, 32, 38, 0.2);
}

.ca-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1E2026;
    margin-bottom: 15px;
    text-align: center;
}

.ca-box {
    display: flex;
    align-items: center;
    background: rgba(30, 32, 38, 0.9);
    border-radius: 15px;
    padding: 15px 20px;
    border: 2px solid #1E2026;
}

/* 美化的滑动效果 */
.ca-address {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #f0b90b;
    letter-spacing: 1px;
    padding-right: 10px;
}

@keyframes textSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ca-segment {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.ca-segment:hover {
    transform: scale(1.1);
    color: #f0b90b;
    text-shadow: 0 0 5px rgba(240, 185, 11, 0.5);
}

.copy-btn {
    background: linear-gradient(45deg, #1E2026, #2a2d35);
    color: #f0b90b;
    border: 2px solid #f0b90b;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(45deg, #f0b90b, #ffd700);
    color: #1E2026;
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0) scale(0.98);
}

.copy-btn.copying {
    background: linear-gradient(45deg, #1E2026, #2a2d35);
    color: #f0b90b;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* CA模块 - 精简版 */
.ca-module {
    background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 3px solid #1E2026;
    box-shadow: 0 10px 30px rgba(30, 32, 38, 0.2);
}

.ca-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1E2026;
    margin-bottom: 15px;
    text-align: center;
}

.ca-box {
    display: flex;
    align-items: center;
    background: rgba(30, 32, 38, 0.9);
    border-radius: 15px;
    padding: 15px 20px;
    border: 2px solid #1E2026;
}

/* 座右铭模块 - 独立样式 */
.motto-module {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.motto-container {
    background: linear-gradient(135deg, #1E2026 0%, #2a2d35 100%);
    padding: 30px 40px;
    border-radius: 20px;
    border: 3px solid #f0b90b;
    max-width: 600px;
    text-align: center;
    transform: rotate(-1deg);
}

.motto {
    font-size: 1.6rem;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    color: #f0b90b;
    line-height: 1.4;
}

/* 复制通知样式 */
/* 复制通知 */
.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #1E2026;
    color: #f0b90b;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 2px solid #f0b90b;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    visibility: hidden;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 座右铭模块 - 独立样式 */
.motto-module {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.motto-container {
    background: linear-gradient(135deg, #1E2026 0%, #2a2d35 100%);
    padding: 30px 40px;
    border-radius: 20px;
    border: 3px solid #f0b90b;
    max-width: 600px;
    text-align: center;
    transform: rotate(-1deg);
}

.motto {
    font-size: 1.6rem;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    color: #f0b90b;
    line-height: 1.4;
}

/* 身份铭牌生成器 */
.id-card {
    background-color: #FFF8E1;
}

.card-generator {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.input-area, .card-preview {
    flex: 1;
    min-width: 300px;
}

.avatar-upload {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(-2deg);
}

.avatar-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

#avatar-input {
    display: none;
}

.avatar-upload label[for="avatar-input"] {
    display: inline-block;
    background-color: #f0b90b;
    color: #1E2026;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #1E2026;
    transform: rotate(2deg);
}

.avatar-upload label[for="avatar-input"]:hover {
    background-color: #FFD700;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 4px 4px 0 #1E2026;
}

#avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 5px solid #f0b90b;
    box-shadow: 0 0 0 3px #1E2026;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-input {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(2deg);
    margin-bottom: 30px;
}

.name-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

.name-input input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #f0b90b;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    box-shadow: 3px 3px 0 #1E2026;
}

#id-card-template {
    width: 400px;
    height: auto;
    min-height: 600px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 8px #f0b90b;
    overflow: hidden;
    margin: 0 auto 30px;
    position: relative;
    border: none;
    transform: rotate(0deg); /* 移除旋转，便于截图 */
}

.card-header {
    background: linear-gradient(135deg, #f0b90b 0%, #FFD700 50%, #f0b90b 100%);
    color: #1E2026;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid #1E2026;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 10px 0 0 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.card-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 4px solid #1E2026;
    background: white;
    padding: 10px;
    position: relative;
    z-index: 2;
}

.card-body {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.card-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 6px solid #f0b90b;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 0 0 3px #ffffff;
    position: relative;
}

.card-avatar::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f0b90b, #FFD700, #f0b90b);
    z-index: -1;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-info {
    text-align: center;
}

.card-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1E2026;
    text-shadow: 2px 2px 4px rgba(240,185,11,0.3);
    position: relative;
}

.card-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f0b90b, #FFD700, #f0b90b);
    border-radius: 2px;
}

.card-id {
    font-size: 1.3rem;
    color: #1E2026;
    background: linear-gradient(135deg, #f0b90b 0%, #FFD700 100%);
    padding: 12px 25px;
    border-radius: 25px;
    display: inline-block;
    transform: rotate(0deg);
    box-shadow: 0 5px 15px rgba(240,185,11,0.4);
    font-weight: 700;
    letter-spacing: 1px;
}

.card-footer {
    background: linear-gradient(135deg, #1E2026 0%, #2a2d35 100%);
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1.1rem;
    color: #f0b90b;
    font-weight: 600;
    border-top: 3px solid #f0b90b;
}

.card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 15px,
        rgba(240,185,11,0.1) 15px,
        rgba(240,185,11,0.1) 30px
    );
}

#download-card {
    display: none;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#download-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 社区建设路线 */
.roadmap {
    background-color: #FFF8E1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background: repeating-linear-gradient(0deg, #f0b90b, #f0b90b 10px, #1E2026 10px, #1E2026 20px);
    transform: translateX(-50%);
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #f0b90b;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 5px solid #1E2026;
    box-shadow: 0 0 0 3px #1E2026;
    animation: pulse 2s infinite;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(var(--timeline-rotation));
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    --timeline-rotation: 2deg;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    --timeline-rotation: -2deg;
}

.timeline-content h3 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 #1E2026;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #1E2026 0%, #2a2d35 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    margin-top: -20px;
    z-index: 2;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 C 20 20, 50 0, 100 20 L 100 20 L 0 20 Z' fill='%231E2026'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    background-repeat: repeat-x;
    z-index: 3;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f0b90b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 30px;
    transform: rotate(-2deg);
}

.footer-logo h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: left;
    color: #f0b90b;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.footer-logo h2:after { display: none; }

.footer-logo p {
    color: #ccc;
    font-size: 1.1rem;
    transform: rotate(1deg);
}

.footer-links h3,
.footer-social h3 {
    color: #f0b90b;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

/* 页脚链接美化 */
.footer-links ul li {
    margin-bottom: 12px;
    transform: rotate(var(--link-rotation));
}

.footer-links ul li:nth-child(1) { --link-rotation: 1deg; }
.footer-links ul li:nth-child(2) { --link-rotation: -0.5deg; }
.footer-links ul li:nth-child(3) { --link-rotation: 0.8deg; }
.footer-links ul li:nth-child(4) { --link-rotation: -1.2deg; }
.footer-links ul li:nth-child(5) { --link-rotation: 0.6deg; }
.footer-links ul li:nth-child(6) { --link-rotation: -0.8deg; }
.footer-links ul li:nth-child(7) { --link-rotation: 1.1deg; }

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links a:hover {
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
    transform: translateX(10px) rotate(2deg);
    box-shadow: 0 3px 10px rgba(240, 185, 11, 0.2);
}

/* 社交媒体按钮美化 */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    color: #ddd;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: rotate(var(--social-rotation));
}

.social-icon:nth-child(1) { --social-rotation: -1deg; }
.social-icon:nth-child(2) { --social-rotation: 0.8deg; }
.social-icon:nth-child(3) { --social-rotation: -0.6deg; }

.social-icon i {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 185, 11, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.15);
    border-color: #f0b90b;
    transform: translateY(-3px) rotate(2deg) scale(1.05);
    box-shadow: 0 5px 20px rgba(240, 185, 11, 0.3);
}

.social-icon:hover i {
    transform: rotate(360deg) scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px; 
    border-top: 2px solid rgba(240, 185, 11, 0.3);
    font-size: 1rem;
    color: #f0b90b;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.footer-bottom p:hover {
    color: #f0b90b;
    transform: rotate(0deg) scale(1.02);
}

/* 动画 */
/* 移除旋转动画，只保留浮动和摆动 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: rotate(-2deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(246, 196, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 添加旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
        padding: 0 15px;
    }
    
    .hero-image {
        flex: 0 0 320px;
        margin-left: -30px;
    }
    
    .palu-logo {
        width: 320px;
        height: 320px;
        margin-left: -15px;
        transform: scale(1.15); /* 中等屏幕稍微小一点的缩放 */
    }
    
    .palu-logo:hover {
        transform: scale(1.2);
    }
    
    @keyframes float {
        0%, 100% {
            transform: scale(1.15) translateY(0px);
        }
        50% {
            transform: scale(1.15) translateY(-10px);
        }
    }
    
    .hero-text {
        margin-left: -80px; /* 中等屏幕稍微减少移动距离 */
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-connect {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero {
        height: 500px; /* 移动设备稍微降低高度 */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 20px;
    }
    
    .hero-image {
        flex: none;
        order: -1;
        margin-left: 0;
        justify-content: center;
    }
    
    .palu-logo {
        width: 250px;
        height: 250px;
        margin-left: 0;
        transform: scale(1.1); /* 移动设备稍微小一点的缩放 */
        transform-origin: center center;
    }
    
    .palu-logo:hover {
        transform: scale(1.15);
    }
    
    @keyframes float {
        0%, 100% {
            transform: scale(1.1) translateY(0px);
        }
        50% {
            transform: scale(1.1) translateY(-10px);
        }
    }
    
    .hero-text {
        text-align: center;
        margin-left: 0; /* 移动设备恢复正常位置 */
        padding-left: 0;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        height: 450px; /* 小屏设备进一步降低高度 */
    }
    
    .hero-content {
        gap: 20px;
        padding: 15px;
    }
    
    .palu-logo {
        width: 200px;
        height: 200px;
        transform: scale(1.05);
    }
    
    .palu-logo:hover {
        transform: scale(1.1);
    }
    
    @keyframes float {
        0%, 100% {
            transform: scale(1.05) translateY(0px);
        }
        50% {
            transform: scale(1.05) translateY(-10px);
        }
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .card {
        min-width: 100%;
    }
    
    #id-card-template {
        width: 280px;
        min-height: 420px;
    }
    
    .ca-module {
        padding: 15px;
    }
    
    .ca-title {
        font-size: 1.1rem;
    }
    
    .ca-address {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .copy-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

}

/* 确保整个卡片预览区域的布局稳定 */
.card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 600px; /* 设置最小高度，防止布局跳动 */
}

/* 确保铭牌和按钮之间的间距一致 */
#id-card-template {
    margin-bottom: 30px; /* 固定间距 */
}

#download-card {
    margin-top: 0; /* 移除顶部边距，依赖铭牌的底部边距 */
}

/* 调整主导航项的旋转效果 */
nav ul li:nth-child(4) { --rotation: 1deg; }
nav ul li:nth-child(5) { --rotation: -1deg; }

/* 响应式设计 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
        flex-direction: column;
        min-width: auto;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }
    
    .dropdown-menu li {
        margin: 5px 0;
        flex: none;
    }
    
    .dropdown-menu li:not(:last-child)::after {
        display: none;
    }
    
    .dropdown-menu a {
        background-color: #f0b90b;
        border-radius: 20px;
        text-align: center;
    }
}

/* 调整主导航项的旋转效果 */
nav ul li:nth-child(4) { --rotation: 1deg; }
nav ul li:nth-child(5) { --rotation: -1deg; }

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    --timeline-rotation: 2deg;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    --timeline-rotation: -2deg;
}

.timeline-content h3 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 #1E2026;
}

/* 页脚主容器 */
footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #2d1b69 100%);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(240, 185, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* 页脚主要内容区域 */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 品牌区域 */
.footer-brand {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(240, 185, 11, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(240, 185, 11, 0.2);
    border-color: rgba(240, 185, 11, 0.4);
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.brand-text h2 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    background: linear-gradient(45deg, #f0b90b, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-slogan {
    color: #f0b90b;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.brand-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* 统计数据 */
.brand-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0b90b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #999;
}

/* 导航链接区域 */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-column {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-column:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.nav-column h3 {
    color: #f0b90b;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-column ul li {
    margin-bottom: 10px;
}

.nav-column ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 10px;
}

.nav-column ul li a:hover {
    color: #f0b90b;
    background: rgba(240, 185, 11, 0.1);
    transform: translateX(5px);
}

.nav-column ul li a i {
    font-size: 0.8rem;
    width: 16px;
}

/* 社交连接区域 */
.footer-connect {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(240, 185, 11, 0.2);
    backdrop-filter: blur(10px);
}

.footer-connect h3 {
    color: #f0b90b;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 社交媒体网格 */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

/* 当有三个社交媒体按钮时的布局调整 */
.social-grid:has(.social-card:nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-card.twitter {
    background: rgba(29, 161, 242, 0.1);
    border-color: rgba(29, 161, 242, 0.3);
}

.social-card.telegram {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
}

.social-card.discord {
    background: rgba(114, 137, 218, 0.1);
    border-color: rgba(114, 137, 218, 0.3);
}

.social-card.github {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-card.qq {
    background: rgba(18, 183, 245, 0.1);
    border-color: rgba(18, 183, 245, 0.3);
}

.social-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 20px rgba(240, 185, 11, 0.2);
}

.social-card i {
    font-size: 1.2rem;
    color: #f0b90b;
}

.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-desc {
    color: #999;
    font-size: 0.75rem;
}

/* 订阅区域 */
.newsletter {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.newsletter h4 {
    color: #f0b90b;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #f0b90b;
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-btn {
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(45deg, #f0b90b, #ffd700);
    color: #1a1f2e;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(240, 185, 11, 0.4);
}

.newsletter-note {
    color: #999;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.4;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

.sub-text {
    color: #999;
    font-size: 0.8rem;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #f0b90b;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #f0b90b, #ffd700);
    color: #1a1f2e;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(240, 185, 11, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

.back-to-top i {
    font-size: 1.1rem;
}

/* 装饰性浮动表情 */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float-around 20s infinite linear;
}

.floating-emoji:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-emoji:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.floating-emoji:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float-around {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* 动画 */
@keyframes wobble {
    0% { transform: rotate(-5deg) scale(1.05); }
    25% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(0deg) scale(1.1); }
    100% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes float {
    0%, 100% {
        transform: scale(1.2) translateY(0px);
    }
    50% {
        transform: scale(1.2) translateY(-10px);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(246, 196, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1E2026;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #fffbe6 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    flex-direction: column;
    padding: 20px;
}

.mobile-nav ul li {
    margin: 15px 0;
    transform: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #1E2026;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background: linear-gradient(135deg, #f0b90b 0%, #FFD700 100%);
    transform: translateX(10px);
}

/* 移动端导航图标 */
.mobile-nav a i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* 移动端导航图标颜色 */
.mobile-nav a .fa-laptop {
    color: #2c3e50;
}

.mobile-nav a .fa-sticky-note {
    color: #f1c40f;
}

.mobile-nav a .fa-bed {
    color: #8b4513;
}

.mobile-nav a .fa-motorcycle {
    color: #e74c3c;
}

.mobile-nav a .fa-desktop {
    color: #34495e;
}

.mobile-nav a:hover i {
    transform: translateX(5px) rotate(15deg);
    filter: brightness(1.2);
}

/* 移动端导航图标 */
.mobile-nav a i {
    margin-right: 10px;
    color: #f0b90b;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav a:hover i {
    transform: translateX(5px) rotate(15deg);
    color: #FFD700;
}

/* 移动端下拉菜单 */
.mobile-dropdown {
    background: rgba(240, 185, 11, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
}

.mobile-dropdown li {
    margin: 8px 0;
}

.mobile-dropdown a {
    padding: 10px 30px;
    font-size: 1rem;
}

/* 移动端下拉菜单图标 */
.mobile-dropdown a i {
    margin-right: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* 移动端下拉菜单图标颜色 */
.mobile-dropdown a .fa-coffee {
    color: #8b4513;
}

.mobile-dropdown a .fa-hard-hat {
    color: #f39c12;
}

.mobile-dropdown a .fa-briefcase {
    color: #2c3e50;
}

.mobile-dropdown a:hover i {
    transform: translateX(3px) rotate(-10deg);
    filter: brightness(1.3);
}

/* 移动端下拉菜单图标 */
.mobile-dropdown a i {
    margin-right: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* 移动端下拉菜单图标颜色 */
.mobile-dropdown a .fa-coffee {
    color: #8b4513;
}

.mobile-dropdown a .fa-hard-hat {
    color: #f39c12;
}

.mobile-dropdown a .fa-briefcase {
    color: #2c3e50;
}

.mobile-dropdown a:hover i {
    transform: translateX(3px) rotate(-10deg);
    filter: brightness(1.3);
}

/* 遮罩层 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 显示汉堡菜单，隐藏桌面导航 */
    .hamburger {
        display: flex;
    }
    
    nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* 头部布局调整 */
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo p {
        font-size: 0.7rem;
    }
    
    /* CA模块移动端优化 */
    .ca-module {
        padding: 20px;
        margin: 20px 0;
    }
    
    .ca-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ca-address {
        font-size: 0.9rem;
        padding-right: 0;
    }
    
    .copy-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    /* 下拉菜单在移动端的调整 */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        display: block;
    }
    
    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }
    
    .dropdown-menu li {
        margin: 0;
        flex: none;
    }
    
    .dropdown-menu a {
        text-align: left;
        white-space: normal;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .palu-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .card {
        min-width: 100%;
    }
    
    #id-card-template {
        width: 280px;
        min-height: 420px;
    }
}

/* 确保整个卡片预览区域的布局稳定 */
.card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 600px; /* 设置最小高度，防止布局跳动 */
}

/* 确保铭牌和按钮之间的间距一致 */
#id-card-template {
    margin-bottom: 30px; /* 固定间距 */
}

#download-card {
    margin-top: 0; /* 移除顶部边距，依赖铭牌的底部边距 */
}

.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: #1E2026;
    color: #f0b90b;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 2px solid #f0b90b;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    visibility: hidden;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(20px);
    opacity: 1;
    visibility: visible;
}

/* 身份铭牌生成器 */
.id-card {
    background-color: #FFF8E1;
}

.card-generator {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.input-area, .card-preview {
    flex: 1;
    min-width: 300px;
}

.avatar-upload {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(-2deg);
}

.avatar-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

#avatar-input {
    display: none;
}

.avatar-upload label[for="avatar-input"] {
    display: inline-block;
    background-color: #f0b90b;
    color: #1E2026;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #1E2026;
    transform: rotate(2deg);
}

.avatar-upload label[for="avatar-input"]:hover {
    background-color: #FFD700;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 4px 4px 0 #1E2026;
}

#avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 5px solid #f0b90b;
    box-shadow: 0 0 0 3px #1E2026;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-input {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(2deg);
    margin-bottom: 30px;
}

.name-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

.name-input input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #f0b90b;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    box-shadow: 3px 3px 0 #1E2026;
}

#id-card-template {
    width: 320px;
    height: auto;
    min-height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #1E2026;
    overflow: hidden;
    margin: 0 auto 30px;
    position: relative;
    border: 5px solid #f0b90b;
    transform: rotate(3deg);
}

.card-header {
    background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 10px, #FFD700 10px, #FFD700 20px);
    color: #1E2026;
    padding: 20px;
    text-align: center;
    border-bottom: 5px dashed #1E2026;
}

.card-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.card-body {
    padding: 30px;
    text-align: center;
}

.card-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f0b90b;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    text-align: center;
}

.card-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f0b90b;
    text-shadow: 1px 1px 0 #1E2026;
}

.card-id {
    font-size: 1.1rem;
    color: #1E2026;
    background-color: #f0b90b;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 #1E2026;
}

.card-footer {
    background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 10px, #FFD700 10px, #FFD700 20px);
    padding: 15px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    color: #1E2026;
    font-weight: bold;
    border-top: 5px dashed #1E2026;
}

#download-card {
    display: none;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#download-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 社区建设路线 */
.roadmap {
    background-color: #FFF8E1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background: repeating-linear-gradient(0deg, #f0b90b, #f0b90b 10px, #1E2026 10px, #1E2026 20px);
    transform: translateX(-50%);
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #f0b90b;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 5px solid #1E2026;
    box-shadow: 0 0 0 3px #1E2026;
    animation: pulse 2s infinite;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(var(--timeline-rotation));
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    --timeline-rotation: 2deg;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    --timeline-rotation: -2deg;
}

.timeline-content h3 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 #1E2026;
}

/* 页脚 */
footer {
    background: #1E2026;
    color: white;
    padding: 60px 0 20px;
    position: relative;
    margin-top: -20px;
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 C 20 20, 50 0, 100 20 L 100 20 L 0 20 Z' fill='%231E2026'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    background-repeat: repeat-x;
    z-index: 3;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    transform: rotate(-2deg);
}

.footer-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: left;
    color: #f0b90b;
    text-shadow: 2px 2px 0 #FFD700;
}

.footer-logo h2:after { display: none; }

.footer-bottom {
    text-align: center;
    padding-top: 20px; 
    border-top: 3px dashed rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: #f0b90b;
}

/* 动画 */
@keyframes wobble {
    0% { transform: rotate(-5deg) scale(1.05); }
    25% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(0deg) scale(1.1); }
    100% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(246, 196, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .social-icons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-icon {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* 游戏页面响应式优化 */
@media (max-width: 768px) {
    .game-container {
        padding: 20px;
        margin: 10px;
        transform: none;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .emoji-display {
        font-size: 4rem;
        width: 200px;
        height: 200px;
    }
    
    .options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 1rem;
    }
}

/* 占卜页面响应式优化 */
@media (max-width: 768px) {
    .fortune-container {
        padding: 20px;
        margin: 10px;
        transform: none;
    }
    
    .crystal-ball {
        width: 200px;
        height: 200px;
    }
    
    .fortune-result {
        padding: 20px;
        margin: 20px 0;
    }
}

/* 语录生成器响应式优化 */
@media (max-width: 768px) {
    .quote-container {
        padding: 20px;
        margin: 10px;
        transform: none;
    }
    
    .quote-display {
        padding: 20px;
        font-size: 1.2rem;
    }
    
    .quote-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-select {
        width: 100%;
    }
}

/* 通用响应式优化 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* 卡片生成器响应式 */
    .card-generator {
        flex-direction: column;
        gap: 30px;
    }
    
    .input-area,
    .card-preview {
        width: 100%;
    }
    
    #id-card-template {
        width: 100%;
        max-width: 320px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 0 5px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 时间线响应式 */
    .timeline-content {
        width: calc(100% - 40px);
        left: 40px !important;
    }
    
    .timeline:before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
        width: 15px;
        height: 15px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        min-width: 100%;
    }
    
    #id-card-template {
        width: 280px;
        min-height: 420px;
    }
}

/* 确保整个卡片预览区域的布局稳定 */
.card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 600px; /* 设置最小高度，防止布局跳动 */
}

/* 确保铭牌和按钮之间的间距一致 */
#id-card-template {
    margin-bottom: 30px; /* 固定间距 */
}

#download-card {
    margin-top: 0; /* 移除顶部边距，依赖铭牌的底部边距 */
}

.copy-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: #1E2026;
    color: #f0b90b;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 2px solid #f0b90b;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
    visibility: hidden;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(20px);
    opacity: 1;
    visibility: visible;
}

/* 身份铭牌生成器 */
.id-card {
    background-color: #FFF8E1;
}

.card-generator {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.input-area, .card-preview {
    flex: 1;
    min-width: 300px;
}

.avatar-upload {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(-2deg);
}

.avatar-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

#avatar-input {
    display: none;
}

.avatar-upload label[for="avatar-input"] {
    display: inline-block;
    background-color: #f0b90b;
    color: #1E2026;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #1E2026;
    transform: rotate(2deg);
}

.avatar-upload label[for="avatar-input"]:hover {
    background-color: #FFD700;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 4px 4px 0 #1E2026;
}

#avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 5px solid #f0b90b;
    box-shadow: 0 0 0 3px #1E2026;
}

#preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-input {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(2deg);
    margin-bottom: 30px;
}

.name-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f0b90b;
    font-size: 1.2rem;
}

.name-input input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #f0b90b;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    box-shadow: 3px 3px 0 #1E2026;
}

#id-card-template {
    width: 320px;
    height: auto;
    min-height: 480px;
    background: white;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #1E2026;
    overflow: hidden;
    margin: 0 auto 30px;
    position: relative;
    border: 5px solid #f0b90b;
    transform: rotate(3deg);
}

.card-header {
    background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 10px, #FFD700 10px, #FFD700 20px);
    color: #1E2026;
    padding: 20px;
    text-align: center;
    border-bottom: 5px dashed #1E2026;
}

.card-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.card-body {
    padding: 30px;
    text-align: center;
}

.card-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f0b90b;
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    text-align: center;
}

.card-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f0b90b;
    text-shadow: 1px 1px 0 #1E2026;
}

.card-id {
    font-size: 1.1rem;
    color: #1E2026;
    background-color: #f0b90b;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 #1E2026;
}

.card-footer {
    background: repeating-linear-gradient(45deg, #f0b90b, #f0b90b 10px, #FFD700 10px, #FFD700 20px);
    padding: 15px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    color: #1E2026;
    font-weight: bold;
    border-top: 5px dashed #1E2026;
}

#download-card {
    display: none;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#download-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 社区建设路线 */
.roadmap {
    background-color: #FFF8E1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background: repeating-linear-gradient(0deg, #f0b90b, #f0b90b 10px, #1E2026 10px, #1E2026 20px);
    transform: translateX(-50%);
    border-radius: 5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #f0b90b;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border: 5px solid #1E2026;
    box-shadow: 0 0 0 3px #1E2026;
    animation: pulse 2s infinite;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #1E2026;
    border: 3px solid #f0b90b;
    transform: rotate(var(--timeline-rotation));
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    --timeline-rotation: 2deg;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    --timeline-rotation: -2deg;
}

.timeline-content h3 {
    color: #f0b90b;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 0 #1E2026;
}

/* 页脚 */
footer {
    background: #1E2026;
    color: white;
    padding: 60px 0 20px;
    position: relative;
    margin-top: -20px;
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 C 20 20, 50 0, 100 20 L 100 20 L 0 20 Z' fill='%231E2026'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    background-repeat: repeat-x;
    z-index: 3;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    transform: rotate(-2deg);
}

.footer-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: left;
    color: #f0b90b;
    text-shadow: 2px 2px 0 #FFD700;
}

.footer-logo h2:after { display: none; }

.footer-bottom {
    text-align: center;
    padding-top: 20px; 
    border-top: 3px dashed rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    color: #f0b90b;
}

/* 动画 */
@keyframes wobble {
    0% { transform: rotate(-5deg) scale(1.05); }
    25% { transform: rotate(0deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(0deg) scale(1.1); }
    100% { transform: rotate(-5deg) scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(246, 196, 93, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 196, 93, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links-bottom {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .brand-stats {
        justify-content: space-around;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }
    
    .back-to-top span {
        display: none;
    }
    
    /* 移动端适配 */
    .ca-module {
        padding: 20px;
        margin: 20px 0;
    }
    
    .ca-box {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .motto-container {
        padding: 20px 25px;
        margin: 0 15px;
    }
    
    .motto {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card {
        min-width: 100%;
    }
    
    #id-card-template {
        width: 280px;
        min-height: 420px;
    }
    
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-brand,
    .nav-column,
    .footer-connect {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        align-self: flex-start;
    }
}

/* 确保整个卡片预览区域的布局稳定 */
.card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 600px; /* 设置最小高度，防止布局跳动 */
}

/* 确保铭牌和按钮之间的间距一致 */
#id-card-template {
    margin-bottom: 30px; /* 固定间距 */
}

#download-card {
    margin-top: 0; /* 移除顶部边距，依赖铭牌的底部边距 */
}
