/* 啡觅水吧官网样式 */

:root {
    --primary: #92400E;
    --primary-light: #B45309;
    --primary-dark: #78350F;
    --on-primary: #FFFFFF;
    --accent: #0369A1;
    --on-accent: #FFFFFF;
    --background: #FFFBF7;
    --foreground: #1C1917;
    --muted: #F5EDE5;
    --border: #E7DDD0;
    --secondary: #78350F;
    --card: #FFFFFF;
    --success: #16A34A;
    --error: #DC2626;
}

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

body {
    font-family: 'NowarHansCN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Literata', 'Noto Serif SC', serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--foreground);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--on-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(146,64,14,0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--on-accent;
}

.btn-accent:hover {
    background: #0284C7;
    color: var(--on-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3,105,161,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--muted);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 16px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title p {
    color: #78716C;
    font-size: 16px;
}

/* 卡片 */
.card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

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

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--foreground);
}

.card-body p {
    color: #78716C;
    font-size: 14px;
    line-height: 1.6;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 服务卡片 */
.service-card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 28px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--foreground);
}

.service-card p {
    color: #78716C;
    font-size: 14px;
    line-height: 1.7;
}

/* 数据统计 */
.stats-bar {
    background: var(--muted);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    color: #78716C;
    font-size: 14px;
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.page-banner p {
    opacity: 0.9;
    font-size: 16px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--card);
    color: var(--foreground);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(146,64,14,0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2378716C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 评论 */
.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.comment-user {
    font-weight: 600;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #A8A29E;
}

.comment-text {
    font-size: 14px;
    color: var(--foreground);
    line-height: 1.6;
    padding-left: 48px;
}

/* 底部 */
.footer {
    background: var(--foreground);
    color: #D6D3D1;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #D6D3D1;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #A8A29E;
}

/* 提示消息 */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-primary {
    background: rgba(146,64,14,0.1);
    color: var(--primary);
}

.tag-accent {
    background: rgba(3,105,161,0.1);
    color: var(--accent);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--card);
}

.timeline-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 14px;
    color: #78716C;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* 动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* 登录/注册页面 */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-left h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.auth-left p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
    text-align: center;
    line-height: 1.8;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--card);
}

.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--foreground);
}

.auth-form p {
    color: #78716C;
    margin-bottom: 24px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 32px 20px;
    }
    
    .auth-right {
        padding: 32px 20px;
    }
}