/* 新主页样式 - 基于现代化设计 */

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* CSS变量定义 */
:root {
    --background: hsl(30, 25%, 98%);
    --foreground: hsl(220, 30%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 30%, 15%);
    --primary: hsl(12, 76%, 61%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(220, 60%, 35%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(30, 15%, 94%);
    --muted-foreground: hsl(220, 15%, 45%);
    --accent: hsl(165, 60%, 45%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(30, 20%, 88%);
    --shadow-soft: 0 4px 20px -4px rgba(41, 50, 65, 0.08);
    --shadow-medium: 0 8px 30px -8px rgba(41, 50, 65, 0.12);
    --shadow-glow: 0 8px 40px -12px rgba(239, 108, 85, 0.3);
    --shadow-card: 0 10px 40px -10px rgba(41, 50, 65, 0.1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 通用类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
.new-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 219, 209, 0.5);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: var(--foreground);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 50px -14px rgba(239, 108, 85, 0.4);
}

/* 头部用户信息下拉（兼容旧 header-pannel.js） */
.nav-user {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.nav-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 2px solid #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-right: 0.25rem;
}

.nav-user-text {
    font-size: 0.9rem;
    color: var(--foreground);
    margin-right: 0.25rem;
}

.nav-user img {
    width: 10px;
    height: 10px;
}

.nav-user .dropdown-content {
    position: absolute !important;
    right: 0 !important;
    top: 100% !important;
    min-width: 150px !important;
    background: #fff !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--shadow-medium) !important;
    padding: 0.4rem 0 !important;
    z-index: 10000 !important;
    display: none !important;
    width: auto !important;
    margin-top: 8px !important;
}

/* 恢复 Hover 显示逻辑，同时支持 .show 类 */
.nav-user:hover .dropdown-content,
.nav-user .dropdown-content.show {
    display: block !important;
}

/* 增加一个透明伪元素填补空隙，防止鼠标移出 */
.nav-user::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
    background: transparent;
}

.nav-user .dropdown-content a {
    display: block !important;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.875rem !important;
    color: var(--foreground) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.nav-user .dropdown-content a:hover {
    background: rgba(242, 237, 233, 0.6) !important;
    color: var(--foreground) !important;
}

/* Hero区域样式 */
.new-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../image/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(252, 249, 247, 0.6),
        rgba(252, 249, 247, 0.4),
        var(--background));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 1rem; 
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(239, 108, 85, 0.1);
    border: 1px solid rgba(239, 108, 85, 0.2);
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out forwards;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeUp 0.6s 0.1s ease-out backwards;
}

.hero-title-gradient {
    display: block;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.6s 0.2s ease-out backwards;
}

/* 搜索框样式 */
.hero-search {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 219, 209, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.6s 0.3s ease-out backwards;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    height: 56px;
    padding: 0 1rem 0 3rem;
    border-radius: 0.75rem;
    background: rgba(242, 237, 233, 0.5);
    border: 1px solid rgba(226, 219, 209, 0.5);
    color: var(--foreground);
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 108, 85, 0.1);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-select {
    min-width: 160px;
    height: 56px;
    padding: 0 1rem;
    border-radius: 0.75rem;
    background: rgba(242, 237, 233, 0.5);
    border: 1px solid rgba(226, 219, 209, 0.5);
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-select:hover {
    background: var(--muted);
}

.search-button {
    min-width: 140px;
    height: 56px;
}

.search-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 219, 209, 0.5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.search-tags-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.search-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: rgba(242, 237, 233, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--foreground);
}

.search-tag:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* 统计数据样式 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 0.6s 0.4s ease-out backwards;
}

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

.stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--foreground);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator-inner {
    width: 24px;
    height: 40px;
    border-radius: 9999px;
    border: 2px solid rgba(134, 142, 150, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-indicator-dot {
    width: 4px;
    height: 8px;
    border-radius: 9999px;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

/* 特色功能区样式 */
.new-features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--background), rgba(242, 237, 233, 0.3));
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-title .text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 219, 209, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-card-gradient {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover .feature-card-gradient {
    opacity: 1;
}

.feature-card-gradient-1 {
    background: linear-gradient(135deg, rgba(239, 108, 85, 0.2), rgba(74, 158, 134, 0.2));
}

.feature-card-gradient-2 {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.2), rgba(239, 108, 85, 0.2));
}

.feature-card-gradient-3 {
    background: linear-gradient(135deg, rgba(74, 158, 134, 0.2), rgba(44, 82, 130, 0.2));
}

.feature-icon {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.feature-icon-primary {
    background: var(--primary);
}

.feature-icon-secondary {
    background: var(--secondary);
}

.feature-icon-accent {
    background: var(--accent);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-content {
    position: relative;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: rgba(239, 108, 85, 0.1);
    color: var(--primary);
    font-weight: 500;
}

/* 附加功能样式 */
.additional-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.additional-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 219, 209, 0.5);
    transition: all 0.3s;
}

.additional-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.additional-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.additional-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.additional-feature-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.additional-feature-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* CTA区域样式 */
.new-cta {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    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.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-cta-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 动画 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 房源列表样式 */
.preview {
    padding: 4rem 0;
    background: var(--background);
}

.home-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.list {
    padding: 0 1rem;
}

.list h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--foreground);
    font-weight: 600;
}

.list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.list ul li {
    margin: 0;
    padding: 0;
    background: none;
}

/* 房屋卡片样式 */
.homebox-item {
    position: relative;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.homebox-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.homebox-pic {
    position: relative;
    height: 0;
    padding-top: 66.67%;
    background: var(--muted);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 1rem 1rem 0 0;
}

.user-pic {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 48px;
    height: 48px;
    border: 2px solid white;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.homebox-content {
    padding: 1rem;
}

.homebox-content header {
    margin-bottom: 0.5rem;
}

.homebox-content .title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary {
    color: var(--foreground);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.summary:hover {
    color: var(--primary);
}

.home-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.home-location i {
    font-size: 1rem;
}

.icon-location:before {
    content: "📍";
    font-style: normal;
}

.homebox-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.rating {
    color: #f7a800;
    font-weight: 600;
    margin-right: 0.5rem;
}

.rating:before {
    content: "★";
    margin-right: 0.25rem;
}

.homebox-review i {
    font-size: 1rem;
    margin: 0 0.25rem;
}

.icon-home-exchange:before {
    content: "⇄";
    font-style: normal;
}

.capacity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.capacity .fas {
    font-size: 0.875rem;
}

.search-more {
    text-align: center;
    margin-top: 2rem;
}

.search-more .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.search-more a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu,
    .navbar-auth {
        display: none;
    }

    .search-form {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .list ul {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .list ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .list ul {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 微信小程序区域样式 */
.wechat-miniprogram {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1AAD19 0%, #2DC653 100%);
    position: relative;
    overflow: hidden;
}

.wechat-miniprogram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wechat-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23wechat-pattern)"/></svg>');
    pointer-events: none;
}

.wechat-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.wechat-info {
    flex: 1;
    min-width: 300px;
}

.wechat-icon {
    margin-bottom: 1rem;
}

.wechat-icon i {
    font-size: 3rem;
    color: white;
}

.wechat-text h3 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wechat-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wechat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wechat-features span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wechat-qr {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wechat-qr img {
    max-width: 200px;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
}

.qr-hint {
    margin-top: 1rem;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 版权区域样式 */
footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--foreground);
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* 登录 / 注册通用布局 */
.auth-page {
    background: var(--background);
    color: var(--foreground);
}

.auth-main {
    min-height: 100vh;
    padding-top: 96px; /* 预留导航栏高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 219, 209, 0.7);
    padding: 2.25rem 2rem 2rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.75rem;
    color: var(--foreground);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.75rem;
}

.auth-subtitle a {
    color: var(--primary);
    text-decoration: none;
}

.auth-subtitle a:hover {
    text-decoration: underline;
}

.auth-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem;
    border-radius: 9999px;
    background: var(--muted);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.25s;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.auth-form-group {
    margin-bottom: 1rem;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.auth-input,
.auth-input-inline {
    width: 100%;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 219, 209, 0.9);
    background: rgba(242, 237, 233, 0.4);
    font-size: 0.9375rem;
    color: var(--foreground);
    outline: none;
    transition: all 0.2s;
}

.auth-input:focus,
.auth-input-inline:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 108, 85, 0.15);
    background: #fff;
}

.auth-input::placeholder,
.auth-input-inline::placeholder {
    color: var(--muted-foreground);
}

.auth-input-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-send-code-btn {
    white-space: nowrap;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 0.75rem;
    border: none;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-send-code-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.auth-error-tip {
    font-size: 0.75rem;
    color: #e03131;
    margin-top: 0.25rem;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 0.75rem;
    height: 46px;
    border-radius: 0.9rem;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 35px -12px rgba(239, 108, 85, 0.55);
}

.auth-extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.auth-link {
    color: var(--primary);
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-other-login {
    margin-top: 1.75rem;
    text-align: center;
}

.auth-other-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.auth-other-line {
    flex: 1;
    height: 1px;
    background: rgba(226, 219, 209, 0.8);
}

.auth-other-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.auth-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: none;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem 1.5rem;
    }
}