* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --gold: #DAA520;
    --gold-light: #F4D03F;
    --gold-dark: #B8860B;
    --gold-glow: rgba(218, 165, 32, 0.4);
    --gold-subtle: rgba(218, 165, 32, 0.1);
    --bg-gradient-start: #FFF9E6;
    --bg-gradient-end: #FFFFFF;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --shadow-soft: 0 4px 20px rgba(218, 165, 32, 0.12);
    --shadow-medium: 0 8px 30px rgba(218, 165, 32, 0.18);
    --shadow-strong: 0 15px 50px rgba(218, 165, 32, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 208, 63, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(218, 165, 32, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 30px rgba(218, 165, 32, 0.08), 0 1px 0 rgba(218, 165, 32, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(218, 165, 32, 0.08);
}
nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 10px rgba(218, 165, 32, 0.2);
}
.logo-icon { font-size: 30px; -webkit-text-fill-color: initial; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
    transition: transform var(--transition-normal);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::before { transform: translateX(-50%) scaleX(1); }
.nav-links a.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--gold-glow), 0 2px 10px rgba(218, 165, 32, 0.3);
    transform: translateY(-2px);
}
.nav-links a.active::before { display: none; }
.user-area { display: flex; gap: 10px; align-items: center; }
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--gold-glow);
}
.btn-secondary {
    background: #fff;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-secondary:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--gold-glow);
}
.btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    transform: none;
}
.btn:disabled:hover::before { display: none; }

.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '🌾';
    position: absolute;
    font-size: 60px;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}
.hero::before { top: 30px; left: 5%; transform: rotate(-15deg); animation-delay: 0s; }
.hero::after { top: 80px; right: 8%; transform: rotate(20deg); animation-delay: 3s; }
@keyframes float {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-15px); }
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(218, 165, 32, 0.3);
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; letter-spacing: 2px; }
.server-info, .server-info-full { display: grid; gap: 16px; margin: 0 auto; }
.server-info { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
.server-info-full { grid-template-columns: repeat(3, 1fr); max-width: 700px; }
.info-card {
    background: #fff;
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(218, 165, 32, 0.1);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(218, 165, 32, 0.2);
}
.info-card:hover::before { opacity: 1; }
.info-card h3 { color: var(--gold); font-size: 12px; margin-bottom: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.info-card p { color: var(--text-primary); font-size: 17px; font-weight: 700; }

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--gold);
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 2px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.rules-section { padding: 70px 0; }
.rules-card {
    background: linear-gradient(145deg, #FFFCF0 0%, #FFF9E6 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid rgba(218, 165, 32, 0.15);
    margin-top: 40px;
    box-shadow: var(--shadow-medium);
}
.rules-card h3 {
    color: var(--gold);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.rule-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(218, 165, 32, 0.08); }
.rule-item:last-child { border-bottom: none; }
.rule-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--gold-glow);
}
.rule-content { flex: 1; }
.rule-content h4 { color: var(--text-primary); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.rule-content p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.community { padding: 70px 0; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.community-card {
    background: #fff;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.community-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}
.community-card:hover::before { opacity: 1; }
.community-card .icon { font-size: 48px; margin-bottom: 18px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.community-card h3 { margin-bottom: 14px; color: var(--text-primary); font-size: 20px; font-weight: 700; }
.community-card p { color: var(--text-muted); margin-bottom: 22px; font-size: 15px; }
.community-card .btn { width: 100%; padding: 14px; }

footer {
    text-align: center;
    padding: 45px 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
footer p { color: #fff; font-size: 14px; position: relative; }
footer p:first-child { font-size: 16px; margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; }

.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    z-index: 2000;
    display: none;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    letter-spacing: 0.5px;
}
@keyframes slideIn {
    from { transform: translateX(120px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.toast.success {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #fff;
    display: block;
}
.toast.error {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: #fff;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
@keyframes modalPop {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.modal-header h3 { color: var(--gold); font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.close-btn { background: none; border: none; color: #ddd; font-size: 32px; cursor: pointer; transition: color var(--transition-fast); padding: 4px; line-height: 1; }
.close-btn:hover { color: var(--gold); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-secondary); font-weight: 600; font-size: 14px; letter-spacing: 0.5px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: var(--radius-md);
    background: #FAFAFA;
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-normal);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(218, 165, 32, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; font-family: inherit; line-height: 1.6; }
.modal-footer { display: flex; gap: 14px; margin-top: 32px; }
.modal-footer .btn { flex: 1; padding: 16px; font-size: 15px; }

.page-title {
    text-align: center;
    padding: 80px 20px 50px;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    position: relative;
}
.page-title h1 {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 4px;
}
.page-title p { color: var(--text-muted); font-size: 20px; letter-spacing: 2px; }

.activity-card, .message-card, .guestbook-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(218, 165, 32, 0.1);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.activity-card::before, .message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.activity-card:hover, .message-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(218, 165, 32, 0.15);
}
.activity-card:hover::before, .message-card:hover::before { opacity: 1; }
.activity-card h3, .message-card h3 { color: var(--text-primary); margin-bottom: 14px; font-size: 22px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.activity-card .status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.status-open { background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%); color: #fff; box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3); }
.status-closed { background: linear-gradient(135deg, #f44336 0%, #ef5350 100%); color: #fff; box-shadow: 0 3px 12px rgba(244, 67, 54, 0.3); }
.activity-card p, .message-card p { color: var(--text-secondary); margin: 10px 0; font-size: 15px; }
.activity-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.activity-card .join-btn { padding: 14px 36px; }
.login-tip, .guestbook-form {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.08) 0%, rgba(244, 208, 63, 0.08) 100%);
    padding: 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid rgba(218, 165, 32, 0.2);
}
.login-tip a { color: var(--gold); text-decoration: none; font-weight: 700; }
.login-tip a:hover { text-decoration: underline; }
.guestbook-form h3 { color: var(--gold); margin-bottom: 22px; font-size: 22px; font-weight: 700; }
.message-card .header { display: flex; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.message-card .username { color: var(--gold); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.message-card .username::before { content: '👤'; font-size: 16px; }
.message-card .time { color: #ccc; font-size: 13px; }
.message-card .content { color: var(--text-secondary); line-height: 1.9; word-break: break-all; font-size: 15px; }
.empty-state { text-align: center; padding: 100px 20px; color: #ccc; font-size: 18px; position: relative; }
.empty-state::before { content: '📭'; font-size: 64px; display: block; margin-bottom: 20px; opacity: 0.5; }
.my-activities { margin-top: 70px; padding-top: 60px; border-top: 2px solid rgba(218, 165, 32, 0.15); }
.my-activities h2 { color: var(--gold); margin-bottom: 28px; font-size: 28px; font-weight: 700; }

.blacklist-container { background: #fff; padding: 36px; border-radius: var(--radius-lg); margin-bottom: 50px; box-shadow: var(--shadow-medium); border: 1px solid rgba(218, 165, 32, 0.12); }
.blacklist-table { width: 100%; border-collapse: collapse; }
.blacklist-table th {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #fff;
    padding: 18px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.blacklist-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.blacklist-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.blacklist-table td { padding: 18px 16px; border-bottom: 1px solid rgba(218, 165, 32, 0.08); font-size: 15px; color: var(--text-secondary); }
.blacklist-table tr:last-child td { border-bottom: none; }
.blacklist-table tr:hover td { background: rgba(218, 165, 32, 0.04); }
.blacklist-empty { text-align: center; padding: 70px 20px; color: var(--text-muted); font-size: 18px; }
.blacklist-empty .icon { font-size: 72px; margin-bottom: 18px; display: block; }
.info-box {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.04) 100%);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    border: 2px solid rgba(244, 67, 54, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
}
.info-box .icon { font-size: 32px; }
.info-box p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

@media (max-width: 768px) {
    .hero { padding: 50px 16px 40px; }
    .hero::before, .hero::after { display: none; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; margin-bottom: 30px; }
    .server-info { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .server-info-full { display: none; }
    .info-card { padding: 18px 12px; }
    .info-card h3 { font-size: 11px; }
    .info-card p { font-size: 15px; }
    nav { flex-direction: column; gap: 12px; }
    .nav-links { width: 100%; justify-content: center; }
    .nav-links a { padding: 8px 14px; font-size: 13px; }
    .user-area { width: 100%; justify-content: center; }
    .logo { font-size: 22px; }
    .section-title { font-size: 26px; }
    .rules-section { padding: 45px 0; }
    .rules-card { padding: 24px 18px; margin-top: 24px; }
    .rules-card h3 { font-size: 20px; }
    .rule-item { padding: 14px 0; }
    .rule-content h4 { font-size: 15px; }
    .rule-content p { font-size: 13px; }
    .community { padding: 45px 0; }
    .community-card { padding: 28px 18px; }
    .community-card .icon { font-size: 42px; }
    .community-card h3 { font-size: 18px; }
    footer { padding: 30px 0; }
    .toast { top: 20px; right: 15px; left: 15px; padding: 14px 20px; }
    .page-title { padding: 50px 16px 35px; }
    .page-title h1 { font-size: 34px; }
    .page-title p { font-size: 17px; }
    .activity-card, .message-card, .guestbook-form { padding: 24px 20px; }
    .activity-card h3, .message-card h3 { font-size: 18px; }
    .modal-content { padding: 32px 24px; margin: 15px; }
    .modal-header h3 { font-size: 22px; }
    .blacklist-container { padding: 24px 18px; }
    .blacklist-table th, .blacklist-table td { padding: 14px 12px; font-size: 14px; }
    .login-tip { padding: 20px; }
}

@media (min-width: 769px) {
    .server-info { display: none; }
    .server-info-full { display: grid !important; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.info-card, .community-card, .activity-card, .message-card {
    animation: fadeInUp 0.6s ease-out forwards;
}
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }
