/* 贤福轩·陶瓷艺术馆首页样式 */

/* 基础重置和变量 - 青花瓷配色方案 */
:root {
    --primary-color: #1E3A8A;        /* 深青花蓝 */
    --primary-light: #3B82F6;        /* 明亮青花蓝 */
    --primary-dark: #1E40AF;         /* 更深青花蓝 */
    --secondary-color: #2563EB;      /* 经典青花蓝 */
    --accent-color: #60A5FA;         /* 浅青花蓝 */
    --text-primary: #1E293B;         /* 深蓝灰 */
    --text-secondary: #334155;       /* 中蓝灰 */
    --text-light: #64748B;           /* 浅蓝灰 */
    --bg-primary: #F8FAFC;           /* 瓷白 */
    --bg-primary-rgb: 248, 250, 252; /* 瓷白RGB */
    --bg-secondary: #F1F5F9;         /* 淡瓷白 */
    --bg-dark: #0F172A;              /* 深蓝黑 */
    --porcelain-white: #FEFEFE;      /* 纯瓷白 */
    --porcelain-white-rgb: 254, 254, 254; /* 纯瓷白RGB */
    --porcelain-blue: #2563EB;       /* 经典青花蓝 */
    --porcelain-light: #DBEAFE;      /* 淡青花色 */
    --border-color: #CBD5E1;         /* 青瓷边框 */
    --shadow-light: 0 2px 10px rgba(30, 58, 138, 0.1);
    --shadow-medium: 0 4px 20px rgba(30, 58, 138, 0.15);
    --shadow-heavy: 0 8px 30px rgba(30, 58, 138, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-primary: 'Noto Serif SC', serif;
    --font-secondary: 'Noto Sans SC', sans-serif;
}

/* 暗色主题变量 */
[data-theme="dark"] {
    --primary-color: #60A5FA;        /* 亮青花蓝 */
    --primary-light: #93C5FD;        /* 更亮青花蓝 */
    --primary-dark: #3B82F6;         /* 中青花蓝 */
    --secondary-color: #60A5FA;      /* 亮青花蓝 */
    --accent-color: #DBEAFE;         /* 极淡青花色 */
    --text-primary: #F1F5F9;         /* 淡瓷白文字 */
    --text-secondary: #CBD5E1;       /* 中瓷白文字 */
    --text-light: #94A3B8;           /* 浅瓷白文字 */
    --bg-primary: #0F172A;           /* 深蓝黑背景 */
    --bg-primary-rgb: 15, 23, 42;    /* 深蓝黑RGB */
    --bg-secondary: #1E293B;         /* 中蓝黑背景 */
    --bg-dark: #F8FAFC;              /* 反转为浅色 */
    --porcelain-white: #1E293B;      /* 暗瓷色 */
    --porcelain-white-rgb: 30, 41, 59; /* 暗瓷色RGB */
    --porcelain-blue: #60A5FA;       /* 亮青花蓝 */
    --porcelain-light: #1E3A8A;      /* 深青花色 */
    --border-color: #334155;         /* 暗青瓷边框 */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--bg-primary-rgb, 248, 250, 252), 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
}

.navbar.scrolled {
    background: rgba(var(--porcelain-white-rgb, 255, 255, 255), 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 首页图标样式 */
.nav-link i.fa-home {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-link:hover i.fa-home,
.nav-link.active i.fa-home {
    background: rgba(30, 58, 138, 0.1);
    transform: scale(1.1);
}

/* 产品列表图标样式 */
.nav-link i.fa-th-large {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-link:hover i.fa-th-large {
    background: rgba(30, 58, 138, 0.1);
    transform: scale(1.1);
    color: var(--primary-color);
}

/* 管理系统图标样式 */
.nav-special i.fa-cog {
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-special:hover i.fa-cog {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.nav-special {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
}

.nav-special:hover {
    background: var(--primary-dark);
    color: white !important;
}

.nav-special::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 主横幅 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.7) 0%,
        rgba(37, 99, 235, 0.5) 50%,
        rgba(59, 130, 246, 0.3) 100%
    );
    z-index: 5;
}

/* 视频链接样式 */
.video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.video-link:hover {
    transform: scale(1.02);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}

/* 轮播容器 */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

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

.hero-title {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
}

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

/* 通用区块样式 */
section {
    padding: 5rem 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(even) {
    animation-delay: 0.2s;
}

section:nth-child(odd) {
    animation-delay: 0.1s;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们 */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.about-item:hover .about-icon {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.about-info h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-info p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* 精品收藏 */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.collection-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.collection-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.collection-image {
    position: relative;
    overflow: hidden;
}

.collection-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.collection-item:hover .collection-img {
    transform: scale(1.1);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .collection-overlay {
    opacity: 1;
}

.collection-info {
    text-align: center;
    padding: 1rem;
}

.collection-info h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.collection-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.collection-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.collection-link:hover {
    background: white;
    color: var(--primary-color);
}

.collections-footer {
    text-align: center;
}

/* 艺术画廊 */
.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

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

/* 页脚 */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.footer-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
}

.footer-bottom .icp-info {
    margin-top: 0.5rem;
}

.footer-bottom .icp-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

.footer-bottom .icp-info a:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-bottom .icp-info a i {
    font-size: 0.8rem;
}

.footer-links-bottom {
    display: flex;
    gap: 1rem;
}

.footer-links-bottom a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-bottom a:hover {
    color: var(--primary-color);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-medium);
}

.back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
        z-index: 999;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        height: 100vh;
        padding: 0 1rem;
        min-height: 600px;
    }



    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 70px; /* Account for navbar height in mobile */
    }

    /* 确保视频背景不被导航栏遮挡 */
    .hero-background {
        top: 70px; /* 从导航栏下方开始 */
        height: calc(100% - 70px); /* 减去导航栏高度 */
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    /* 移动端轮播样式 */
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .footer-contact-section {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .about-item {
        margin-bottom: 1.5rem;
    }

    .about-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        height: 70vh;
    }

    /* 确保视频背景不被导航栏遮挡 */
    .hero-background {
        top: 70px; /* 从导航栏下方开始 */
        height: calc(100% - 70px); /* 减去导航栏高度 */
    }

    .title-main {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .about-icon {
        align-self: center;
    }

    .collections-grid {
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .contact-icon {
        align-self: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.1rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .title-main {
        font-size: 1.8rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* 超小屏幕轮播样式 */
    .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .nav-container {
        height: 60px;
    }

    .nav-menu {
        top: 60px;
    }

    .hero-content {
        padding-top: 60px; /* Adjust for smaller navbar in ultra-small screens */
    }

    /* 超小屏幕视频背景调整 */
    .hero-background {
        top: 60px; /* 从较小的导航栏下方开始 */
        height: calc(100% - 60px); /* 减去较小导航栏高度 */
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }
}

/* 微信和视频号模态框样式 */
.wechat-modal,
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-modal.show,
.video-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

/* 暗色模式适配 - 首页模态框 */
[data-theme="dark"] .wechat-modal,
[data-theme="dark"] .video-modal {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .modal-content {
    background: var(--admin-surface, #2d2d2d) !important;
    color: var(--admin-text, #e8e8e8) !important;
    border: 1px solid var(--admin-border, #404040) !important;
}

[data-theme="dark"] .modal-header {
    background: var(--admin-surface, #2d2d2d) !important;
    border-bottom-color: var(--admin-border, #404040) !important;
    color: var(--admin-text, #e8e8e8) !important;
}

[data-theme="dark"] .modal-body {
    background: var(--admin-surface, #2d2d2d) !important;
    color: var(--admin-text, #e8e8e8) !important;
}

[data-theme="dark"] .modal-footer {
    background: var(--admin-surface, #2d2d2d) !important;
    border-top-color: var(--admin-border, #404040) !important;
    color: var(--admin-text, #e8e8e8) !important;
}

[data-theme="dark"] .modal-close {
    background: rgba(45, 45, 45, 0.8) !important;
    color: var(--admin-text-light, #b0b0b0) !important;
}

[data-theme="dark"] .modal-close:hover {
    background: var(--admin-primary, #4a7c59) !important;
    color: white !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 24px;
}

.wechat-info,
.video-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.wechat-icon,
.video-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.video-icon {
    background: #ff6b35;
}

.wechat-details,
.video-details {
    flex: 1;
}

.wechat-label,
.video-label {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.wechat-id,
.video-account {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.modal-tips {
    background: #e8f4fd;
    border: 1px solid #b3d9f7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.modal-tips p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-tips p:last-child {
    margin-bottom: 0;
}

.modal-tips i {
    color: #4a90e2;
}

.modal-actions {
    text-align: center;
}

.wechat-btn {
    background: #07c160;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.wechat-btn:hover {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

/* 模态框响应式样式 */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 16px 20px 12px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
    }

    .wechat-info,
    .video-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .wechat-icon,
    .video-icon {
        align-self: center;
    }

    .modal-tips {
        padding: 12px;
    }

    .modal-tips p {
        font-size: 0.85rem;
    }

    .wechat-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* 导航栏右侧功能按钮 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.login-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.theme-toggle:hover,
.login-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.theme-toggle:active,
.login-toggle:active {
    transform: translateY(0);
}

/* 登录面板 */
.login-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.login-panel.active {
    visibility: visible;
    opacity: 1;
}

.login-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-panel-content {
    position: fixed !important;
    top: 0;
    right: 0 !important;
    left: auto !important;
    width: 420px;
    height: 100vh;
    background: linear-gradient(135deg, #6B9BD2 0%, #8BB5D8 30%, #A8CDE0 70%, #C5E4F0 100%);
    box-shadow: -15px 0 40px rgba(135, 206, 235, 0.2);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    border-left: 1px solid rgba(135, 206, 235, 0.3);
}

/* 装饰性背景 - 汝窑冰裂纹理 */
.login-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(25deg, transparent 49%, rgba(107, 155, 210, 0.08) 49.5%, rgba(107, 155, 210, 0.08) 50.5%, transparent 51%),
        linear-gradient(155deg, transparent 49%, rgba(139, 181, 216, 0.06) 49.5%, rgba(139, 181, 216, 0.06) 50.5%, transparent 51%),
        linear-gradient(80deg, transparent 49%, rgba(168, 205, 224, 0.05) 49.5%, rgba(168, 205, 224, 0.05) 50.5%, transparent 51%);
    background-size: 220px 220px, 160px 160px, 280px 280px;
    opacity: 0.3;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 25% 25%, rgba(135, 206, 235, 0.03) 20%, transparent 21%),
        radial-gradient(ellipse at 75% 75%, rgba(176, 224, 230, 0.02) 15%, transparent 16%),
        radial-gradient(ellipse at 50% 50%, rgba(224, 246, 255, 0.04) 25%, transparent 26%);
    background-size: 300px 300px, 250px 250px, 400px 400px;
    animation: crackleFlow 40s ease-in-out infinite;
}

@keyframes crackleFlow {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.2;
    }
    33% {
        transform: translateX(-10px) translateY(-5px) rotate(0.5deg);
        opacity: 0.4;
    }
    66% {
        transform: translateX(5px) translateY(-8px) rotate(-0.3deg);
        opacity: 0.3;
    }
}

.bg-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(135, 206, 235, 0.05), transparent);
    opacity: 0.6;
}

.login-panel.active .login-panel-content {
    transform: translateX(0);
}



.login-panel-header {
    position: relative;
    z-index: 2;
    padding: 45px 35px 35px;
    text-align: center;
    background: rgba(var(--porcelain-white-rgb, 255, 255, 255), 0.25);
    backdrop-filter: blur(15px);
    color: #2c3e50;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
}

.header-icon {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: #495057;
    border: 3px solid rgba(135, 206, 235, 0.3);
    box-shadow:
        0 8px 24px rgba(135, 206, 235, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(135, 206, 235, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.header-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(135, 206, 235, 0.1), rgba(176, 224, 230, 0.1));
    z-index: -1;
}

.header-icon:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(135, 206, 235, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.9),
        inset 0 -2px 6px rgba(135, 206, 235, 0.15);
}

.login-panel-header h3 {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    font-size: 2.4rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(135, 206, 235, 0.2);
    letter-spacing: 3px;
    position: relative;
}

.login-panel-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #87CEEB, transparent);
    border-radius: 1px;
}

.header-subtitle {
    color: rgba(44, 62, 80, 0.8);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 登录表单容器 - 白瓷质感 */
.login-form-container {
    position: relative;
    z-index: 2;
    padding: 35px;
    flex: 1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    margin: 25px;
    border-radius: 16px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow:
        0 6px 20px rgba(135, 206, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(135, 206, 235, 0.1);
}

/* 登录表单 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Serif SC', serif;
}

.form-group label i {
    color: #87CEEB;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 1px solid #d4af37;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow:
        0 2px 8px rgba(135, 206, 235, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(135, 206, 235, 0.05);
    font-family: 'Noto Sans SC', sans-serif;
}

.input-wrapper input::placeholder {
    color: rgba(44, 62, 80, 0.5);
    font-weight: 300;
}

/* 密码输入框需要右侧留出空间给眼睛图标 */
#password {
    padding-right: 48px !important;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #b8860b;
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    box-shadow:
        0 0 0 2px rgba(184, 134, 11, 0.2),
        0 4px 12px rgba(135, 206, 235, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.9),
        inset 0 -1px 3px rgba(135, 206, 235, 0.08);
    transform: translateY(-1px);
}

.input-wrapper input:focus ~ i {
    color: #b8860b;
    transform: scale(1.05);
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: rgba(135, 206, 235, 0.8);
    font-size: 16px;
    z-index: 2;
    transition: all 0.3s ease;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(135, 206, 235, 0.7);
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.1);
}

/* 登录按钮 - 钧窑紫红色渐变釉色 */
.login-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #8B4B8C 0%, #A0527C 30%, #B85A6C 70%, #C8615C 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow:
        0 6px 20px rgba(139, 75, 140, 0.3),
        0 2px 8px rgba(200, 97, 92, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(139, 75, 140, 0.2);
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-content i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(139, 75, 140, 0.4),
        0 4px 12px rgba(200, 97, 92, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #9A5B9B 0%, #B0628B 30%, #C6697B 70%, #D8706B 100%);
}

.login-btn:hover:not(:disabled) .btn-content i {
    transform: translateX(2px);
}

.login-btn:active:not(:disabled) {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.login-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* 按钮波纹效果 */
.btn-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.login-btn:active .btn-ripple {
    transform: scale(1);
}

.login-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.login-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 登录消息 */
.login-message {
    display: none;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    margin-top: 10px;
}

.login-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.login-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 登录页脚 - 雅宋字体 */
.login-footer {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    padding: 25px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(135, 206, 235, 0.15);
    border-radius: 16px 16px 0 0;
}

.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.decoration-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.5), transparent);
}

.footer-decoration i {
    color: #87CEEB;
    font-size: 12px;
}

.login-footer p {
    color: rgba(44, 62, 80, 0.8);
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'SimSun', 'Noto Serif SC', serif;
}

.footer-tips {
    margin-top: 15px;
}

.footer-tips small {
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow:
        0 2px 8px rgba(135, 206, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-family: 'SimSun', 'Noto Sans SC', sans-serif;
}

/* 暗色主题支持 - 东方极简风格 */
[data-theme="dark"] .login-panel-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 30%, #4a5568 70%, #5a6c7d 100%);
    border-left-color: rgba(135, 206, 235, 0.2);
}

[data-theme="dark"] .bg-pattern {
    opacity: 0.3;
}

[data-theme="dark"] .bg-gradient {
    background: linear-gradient(to top, rgba(44, 62, 80, 0.1), transparent);
}

[data-theme="dark"] .login-panel-header {
    background: rgba(44, 62, 80, 0.4);
    border-bottom-color: rgba(135, 206, 235, 0.1);
    color: #ecf0f1;
}

[data-theme="dark"] .login-panel-header h3 {
    color: #ecf0f1;
}

[data-theme="dark"] .header-subtitle {
    color: rgba(236, 240, 241, 0.8);
}

[data-theme="dark"] .header-icon {
    background: radial-gradient(circle, #34495e 0%, #2c3e50 50%, #1a252f 100%);
    border-color: rgba(135, 206, 235, 0.2);
    color: #87CEEB;
}

[data-theme="dark"] .close-btn {
    background: rgba(236, 240, 241, 0.1);
    border-color: rgba(135, 206, 235, 0.2);
    color: #ecf0f1;
}

[data-theme="dark"] .close-btn:hover {
    background: rgba(236, 240, 241, 0.2);
}

[data-theme="dark"] .login-form-container {
    background: rgba(44, 62, 80, 0.6);
    border-color: rgba(135, 206, 235, 0.15);
}

[data-theme="dark"] .login-footer {
    background: rgba(44, 62, 80, 0.4);
    border-top-color: rgba(135, 206, 235, 0.1);
}

[data-theme="dark"] .form-group label {
    color: #ecf0f1;
}

[data-theme="dark"] .form-group label i {
    color: #87CEEB;
}

[data-theme="dark"] .input-wrapper input {
    background: linear-gradient(145deg, #34495e 0%, #2c3e50 100%);
    border-color: #b8860b;
    color: #ecf0f1;
}

[data-theme="dark"] .input-wrapper input::placeholder {
    color: rgba(236, 240, 241, 0.5);
}

[data-theme="dark"] .input-wrapper input:focus {
    border-color: #d4af37;
    background: linear-gradient(145deg, #3a526b 0%, #2f4454 100%);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.2),
        0 4px 12px rgba(135, 206, 235, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.1),
        inset 0 -1px 3px rgba(135, 206, 235, 0.05);
}

[data-theme="dark"] .input-wrapper i {
    color: rgba(135, 206, 235, 0.7);
}

[data-theme="dark"] .input-wrapper input:focus ~ i {
    color: #d4af37;
}

[data-theme="dark"] .password-toggle {
    color: rgba(135, 206, 235, 0.6);
}

[data-theme="dark"] .password-toggle:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

[data-theme="dark"] .login-footer {
    background: #334155;
    border-top-color: #475569;
}

[data-theme="dark"] .decoration-line {
    background: linear-gradient(90deg, transparent, rgba(135, 206, 235, 0.4), transparent);
}

[data-theme="dark"] .footer-decoration i {
    color: #87CEEB;
}

[data-theme="dark"] .login-footer p {
    color: rgba(236, 240, 241, 0.8);
}

[data-theme="dark"] .footer-tips small {
    color: rgba(236, 240, 241, 0.6);
    background: rgba(44, 62, 80, 0.4);
    border-color: rgba(135, 206, 235, 0.15);
}

/* 响应式设计 - 登录面板 */
@media (max-width: 768px) {
    .nav-actions {
        gap: 8px;
    }

    .theme-toggle,
    .login-toggle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .login-panel-content {
        width: 100%;
    }

    .login-panel-header {
        padding: 35px 25px 30px;
    }

    .header-icon {
        width: 75px;
        height: 75px;
        font-size: 30px;
    }

    .login-panel-header h3 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .close-btn {
        width: 34px;
        height: 34px;
        top: 18px;
        right: 18px;
    }

    .login-form-container {
        padding: 28px 22px;
        margin: 18px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .input-wrapper input {
        padding: 14px 44px 14px 44px;
        font-size: 16px; /* 防止iOS缩放 */
    }

    #password {
        padding-right: 44px !important;
    }

    .login-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    .login-footer {
        padding: 20px;
    }

    .footer-tips small {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions {
        gap: 6px;
    }

    .theme-toggle,
    .login-toggle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* 首页暗色主题支持 */
[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.98);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .logo-text {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-special {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .login-toggle {
    background: rgba(15, 23, 42, 0.3);
    border-color: var(--border-color);
    color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .login-toggle:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* 主内容区域暗色主题 */
[data-theme="dark"] .hero {
    background: var(--bg-primary);
}

[data-theme="dark"] .hero-title .title-main {
    color: var(--primary-color);
}

[data-theme="dark"] .hero-title .title-sub {
    color: var(--text-primary);
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .scroll-indicator {
    color: var(--primary-color);
}

/* 页脚暗色主题 */
[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-logo-text {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-item i {
    color: var(--primary-color);
}

[data-theme="dark"] .social-link {
    background: rgba(96, 165, 250, 0.1);
    color: var(--primary-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
    color: var(--text-light);
}

[data-theme="dark"] .icp-info a {
    color: var(--text-light);
}

[data-theme="dark"] .icp-info a:hover {
    color: var(--primary-color);
}

/* 返回顶部按钮暗色主题 */
[data-theme="dark"] .back-to-top {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .back-to-top:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}



.login-panel.active .login-panel-content {
    transform: translateX(0) !important;
    animation: slideInFromRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 按钮点击反馈 */
.theme-toggle:active,
.login-toggle:active {
    transform: scale(0.95);
}

/* 输入框聚焦动画 */
.input-wrapper input:focus {
    transform: translateY(-1px);
}

/* 登录按钮加载动画增强 */
.login-btn:disabled {
    position: relative;
    overflow: hidden;
}

.login-btn:disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 消息提示动画 */
.login-message {
    animation: fadeInUp 0.3s ease-out;
}

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

/* 主题切换图标旋转动画 */
.theme-toggle i {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

/* 登录面板遮罩动画 */
.login-panel-overlay {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 提升可访问性 */
.theme-toggle:focus,
.login-toggle:focus,
.close-btn:focus,
.login-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .login-panel-content {
        border: 2px solid var(--primary-color);
    }

    .input-wrapper input {
        border-width: 2px;
    }

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