/* 主界面样式 - 苹果风格 */

/* 🚀 性能优化：懒加载图片样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.lazy-image.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

.lazy-image.error {
    opacity: 0.5;
    background: #f5f5f5;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 苹果配色系统 */
:root {
    /* 主色调 */
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;

    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;

    /* 文字色 */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;

    /* 边框色 */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);

    /* 阴影 */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 苹果风格的缓动函数 */
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    /* 苹果字体系统 */
    font-family: -apple-system, BlinkMacSystemFont,
                 "SF Pro SC", "SF Pro Text", "SF Pro Icons",
                 "PingFang SC", "Helvetica Neue", "Helvetica",
                 "Arial", "Microsoft YaHei", sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-secondary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden; /* 防止页面切换时滚动条闪烁 */
}

/* 全局滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.35);
}

/* Firefox滚动条美化 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* 启动动画 */
.startup-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.startup-animation.hidden {
    opacity: 0;
    pointer-events: none;
}

.startup-logo-wrapper {
    display: flex;
    gap: 1rem; /* 0.5rem * 2 = 1rem，与logo大小成比例 */
    align-items: flex-end; /* 底部对齐，与主页一致 */
    justify-content: flex-start;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup-logo {
    width: auto;
    object-fit: contain;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup-logo-cossia {
    height: 76px; /* 38px * 2 */
}

.startup-logo-a {
    height: 79.2px; /* 39.6px * 2 */
    margin-left: -40px; /* -20px * 2，重叠距离也是2倍 */
}

/* 顶部标题栏 - 苹果风格毛玻璃效果 */
.header {
    height: 48px; /* 苹果标准高度 */
    background: rgba(255, 255, 255, 0.8); /* 半透明背景 */
    backdrop-filter: saturate(180%) blur(20px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: saturate(180%) blur(20px); /* Safari支持 */
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: none; /* 移除阴影 */
    position: relative;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-slogan {
    color: var(--text-secondary);
    font-size: 1.05rem; /* 增加20%: 14px * 1.2 = 16.8px ≈ 1.05rem */
    font-weight: 400;
    font-style: normal; /* 移除斜体 */
    display: inline-block;
    align-self: center;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: -0.01em;
}

.header-logo {
    width: auto;
    object-fit: contain;
}

/* 用户菜单样式 */
.user-menu {
    position: absolute;
    top: 0; /* 与用户图标顶部对齐 */
    right: 0; /* 与用户图标右边对齐 */
    background: #f8f9fa;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    width: 380px;
    z-index: 1000;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    /* 从用户图标的尺寸和位置开始 */
    transform-origin: top right; /* 从右上角展开 */
    transform: scale(0.089); /* 34px / 380px ≈ 0.089 */
    border-radius: 50%; /* 初始状态为圆形,与用户头像一致 */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    border-radius: 28px; /* 展开后变为圆角矩形 */
}

/* 用户头像在菜单展开时隐藏 */
.user-avatar.menu-open {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* 用户信息头部 */
.user-menu-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 4px;
    margin-bottom: 20px;
}

.user-menu-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #b2b7a3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-menu-avatar .avatar-text {
    color: white;
    font-size: 1.6rem;
    font-weight: bold;
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

/* 用户名和邮箱在同一行 */
.user-menu-name-email {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.user-menu-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}

.user-menu-email {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 剩余点数和有效期信息 */
.user-menu-credits-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}

.user-menu-credits-info .credits-amount {
    color: #4CAF50;
    font-weight: 600;
}

.user-menu-credits-info .credits-separator {
    color: #ccc;
}

.user-menu-credits-info .credits-expiry {
    color: #ff9800;
    font-weight: 600;
}

/* 升级按钮 - 蓝色到黄色渐变 */
.menu-upgrade-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #5eb3f6 0%, #f5d76e 100%);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(94, 179, 246, 0.3);
}

.menu-upgrade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #4a9de5 0%, #e5c75e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-upgrade-item:hover {
    box-shadow: 0 4px 12px rgba(94, 179, 246, 0.4);
    transform: translateY(-1px);
}

.menu-upgrade-item:hover::before {
    opacity: 1;
}

.menu-upgrade-item > * {
    position: relative;
    z-index: 1;
}

.menu-upgrade-item .menu-item-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.menu-upgrade-item span:first-of-type {
    flex: 1;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.upgrade-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #4a90e2;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 企业用户标识 - 与升级按钮样式一致但不可点击 */
.menu-enterprise-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #5eb3f6 0%, #f5d76e 100%);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(94, 179, 246, 0.3);
    cursor: default; /* 不可点击 */
    opacity: 0.9; /* 稍微降低透明度以区分 */
}

.menu-enterprise-badge .menu-item-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.menu-enterprise-badge span:first-of-type {
    flex: 1;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 菜单项 */
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
    border-radius: 28px;
    cursor: pointer;
    margin-bottom: 2px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #e8eaed;
}

.menu-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.8;
}

.menu-item span {
    flex: 1;
}

/* 禁用的菜单项 */
.menu-item-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.menu-item-disabled:hover {
    background-color: transparent;
}

/* 深色模式切换 */
.menu-dark-mode {
    justify-content: space-between;
}

.dark-mode-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
}

.dark-mode-toggle input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 34px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dark-mode-toggle input:checked + .toggle-slider {
    background-color: #4a90e2;
}

.dark-mode-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 登出按钮 - 粉色背景 */
.menu-logout-item {
    background-color: #ffe8e8;
    color: #ff6b6b;
    margin-top: 12px;
    font-weight: 500;
}

.menu-logout-item:hover {
    background-color: #ffd4d4;
}

.menu-logout-item .menu-item-icon {
    filter: none;
    opacity: 1;
}

.header-logo:nth-child(1) {
    height: 38px;
}

.header-logo:nth-child(2) {
    height: 39.6px; /* 缩小至4/5: 49.5px * 0.8 = 39.6px */
    align-self: flex-end; /* 底部对齐 */
    margin-left: -20px; /* 向左移动，与第一个logo贴在一起 */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mail-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 1rem; /* 增加下移距离，更贴近设置按钮 */
}

.mail-icon-symbol {
    font-size: 1.5rem;
}

.message-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* 用户头像包装器 */
.user-avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 34px; /* 缩小至3/4: 45px * 0.75 ≈ 34px */
    height: 34px;
    border-radius: 50%;
    background: #b2b7a3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-avatar::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: rgba(178, 183, 163, 0.15);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.user-avatar:hover::before {
    opacity: 1;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.avatar-text {
    color: white;
    font-size: 1.05rem; /* 相应缩小文字 */
    font-weight: bold;
}

.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* 主容器 */
.main-container {
    height: calc(100vh - 48px); /* 100vh减去header高度，完全对齐浏览器底部 */
    display: flex;
}

/* 左侧导航栏 - 宽度调整为原来的0.7倍 (2.1vw) */
.sidebar {
    width: 2.1vw;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    margin-top: 0; /* 重置为正常位置 */
}

nav {
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 导航项样式已移至 sidebar.css，此处注释掉避免冲突 */

.nav-text {
    font-size: 0.75rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    writing-mode: vertical-rl; /* 纵向排列 */
    text-orientation: mixed;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.nav-item.active .nav-text {
    color: #2e7d32;
    font-weight: 600;
}

/* 设置按钮样式已移至 sidebar.css，此处注释掉避免冲突 */
/*
.settings-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 0 0.5rem;
    border-radius: 0;
}

.settings-button:hover {
    transform: rotate(30deg);
}
*/

/* 设置菜单样式 */
.settings-menu {
    position: absolute;
    bottom: 0;
    left: 100%;
    margin-left: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.settings-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.settings-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    text-align: center;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background-color: #f5f5f5;
}

.settings-icon {
    font-size: 1.5rem;
    color: #666;
}

/* 右侧内容区域 */
/* 户型筛选器样式 */
.filter-container {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    overflow-y: auto;
}

/* 户型库页面筛选容器特殊样式 */
#layout-library-page .filter-container {
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
    padding: 0 1.5rem 1.5rem; /* 添加内边距，与彩色平面图一致 */
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group-header {
    background: transparent; /* 取消背景色 */
    padding: 8px 0; /* 调整内边距 */
    text-align: center;
    font-weight: 600;
    color: #333;
    border-radius: 0; /* 取消圆角 */
    margin-bottom: 12px; /* 增加底部间距 */
    font-size: 13px;
}
.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* 增加间距，与彩色平面图一致 */
    padding: 0; /* 取消内边距 */
}
.filter-btn {
    padding: 8px 0; /* 保持原有高度 */
    background: var(--bg-primary); /* 白色背景 */
    border: 1px solid var(--border-light); /* 与彩色平面图一致的边框 */
    border-radius: 12px; /* 添加圆角，与彩色平面图一致 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 与彩色平面图一致的过渡效果 */
    font-size: 13px;
    text-align: center;
    width: 100%;
    box-shadow: var(--shadow-medium); /* 添加阴影，与彩色平面图一致 */
}
.filter-btn:hover {
    border-color: #4a4a4a; /* 悬停时深灰色边框 */
    transform: translateY(-2px); /* 向上位移 */
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.15); /* 增强阴影 */
    background: var(--bg-secondary); /* 浅灰色背景 */
}
.filter-btn.active {
    border-color: #87CEEB; /* 激活时天蓝色边框 */
    background: #f0f7ff; /* 浅蓝色背景 */
    color: #333;
}
/* 产品类型特殊布局 */
.product-type-options {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8px;
}
/* 房间数特殊布局 */
.room-count-options {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8px;
}

/* 梯户比选项 */
#ratioGroup {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.ratio-options {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 8px;
    margin-top: 8px;
}

/* 禁用状态 */
.filter-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 筛选按钮 */
.filter-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}
.apply-filter-btn {
    padding: 10px 30px;
    background: #BAE7FE;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.apply-filter-btn:hover {
    background: #9fd4f5;
}
.range-slider-container {
    padding: 0 10px;
}
.range-slider {
    position: relative;
    height: 16px;
    margin: 6px 0;
}
.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}
.slider {
    position: absolute;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}
#minArea {
    z-index: 3;
}
#maxArea {
    z-index: 4;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 10px;
    background: #888;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    pointer-events: all;
}
.slider::-moz-range-thumb {
    width: 16px;
    height: 10px;
    background: #888;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    pointer-events: all;
}
.range-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.range-values span {
    min-width: 40px;
    text-align: center;
}

.content-area {
    flex: 1;
    background: white;
    padding: 2rem;
    overflow: hidden;
}

/* 首页特殊处理 - 移除padding，让展示区域占满 */
.content-area.home-active {
    padding: 0 !important;
    overflow: hidden !important;
}

/* 🔧 修复：其他功能页面也移除padding，避免四周空白 */
.content-area:has(#color-plan-page.active),
.content-area:has(#layout-library-page.active),
.content-area:has(#furniture-library-page.active),
.content-area:has(#image-to-drawing-page.active),
.content-area:has(#messages-page.active) {
    padding: 0 !important;
}

#home-page {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

#home-page.active {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* 其他页面也使用flex布局以支持底部欢迎文字 */
#color-plan-page.active,
#color-master-plan-page.active,
#layout-library-page.active,
#furniture-library-page.active,
#image-to-drawing-page.active,
#messages-page.active {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* 图纸转换页面容器 - 与彩色平面图页面一致 */
#image-to-drawing-page .content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0; /* 取消间距，让竖线紧贴 */
    padding: 0; /* 取消内边距 */
}

/* 页面切换动画 - 苹果风格 */
.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
    animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   苹果风格首页 Hero Section
   ============================================ */

/* Hero 全屏展示区域 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* 改为visible，防止按钮放大时被截断 */
    background: #000;
}

/* 背景大图 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 媒体显示模式 */
/* 最大化模式 - 其中一个方向撑满界面，另一个方向可超出界面（默认） */
.hero-image.display-mode-maximize {
    object-fit: cover;
}

/* 自适应模式 - 两个方向都不超出界面，其中一个方向撑满界面 */
.hero-image.display-mode-fit {
    object-fit: contain;
}

/* 宽度适应模式 - 高度100%撑满（不超出），宽度按比例计算居中显示（可能留白或超出） */
.hero-image.display-mode-width-fit {
    width: auto !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 100% !important;
    flex-shrink: 0;
    display: block;
}

/* 高度适应模式 - 宽度100%撑满（不超出），高度按比例计算居中显示（可能留白或超出） */
.hero-image.display-mode-height-fit {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
    flex-shrink: 0;
    display: block;
}

/* 视频特殊样式 - 保持长宽比,居中显示,两边留白（已被display-mode-fit替代，保留向后兼容） */
.hero-background video.hero-image {
    object-fit: contain;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 底部内容容器 */
.hero-bottom-content {
    position: absolute;
    bottom: -20px; /* 向下移动半个按钮高度(按钮高度约40px，移动20px) */
    left: 0;
    right: 0;
    z-index: 10; /* 降低层级，让底部文字可以显示在上方 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
    pointer-events: none; /* 容器本身不接收点击事件 */
    overflow: visible; /* 防止按钮放大时被截断 */
}

/* 文字内容 */
.hero-content {
    text-align: center;
    color: #fff;
    max-width: 980px;
    padding: 0 3rem; /* 增加左右padding，为按钮放大留出空间 */
    margin: 0 auto 2rem; /* 居中对齐 */
    animation: heroContentFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    pointer-events: auto; /* 文字内容可以接收点击事件 */
    /* 不设置overflow，让按钮可以超出容器边界 */
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 33.6px; /* 缩小至3/5: 56px * 0.6 = 33.6px */
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 16.8px; /* 缩小至3/5: 28px * 0.6 = 16.8px */
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA 按钮组 */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
    overflow: visible; /* 防止按钮放大时被截断 */
    padding: 0 10px; /* 为按钮放大预留空间 */
}

/* 苹果风格胶囊按钮 */
.cta-button {
    padding: 12px 24px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    border-radius: 980px; /* 苹果胶囊形状 */
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    text-align: center;
    letter-spacing: -0.022em;
    overflow: visible; /* 防止按钮放大时被截断 */
    position: relative; /* 确保transform正常工作 */
    margin: 0 5px; /* 为按钮放大预留左右空间 */
}

.cta-primary {
    background: #000000;
    color: #fff;
}

.cta-primary:hover {
    background: #1d1d1f;
    transform: scale(1.02);
    z-index: 100; /* 确保悬停时按钮在最上层 */
}

.cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: scale(1.02);
}

/* 底部点状指示器 */
.hero-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 2.5rem; /* 适当增加与按钮的距离 */
    position: relative;
    top: -50px; /* 向上调整50px，确保指示器在视图内 */
    z-index: 30; /* 提高层级 */
    pointer-events: auto; /* 指示器可以接收点击事件 */
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

/* 底部浮动文字区域 */
.hero-footer-text {
    position: absolute;
    bottom: 10px;
    z-index: 20;
    padding: 8px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 0.1;
    max-width: 40%; /* 限制最大宽度为40%，避免覆盖中间指示点区域 */
}

.hero-footer-text.align-left {
    left: 0;
    justify-content: flex-start;
}

.hero-footer-text.align-center {
    left: 0; /* 居中改为左对齐，避免与中间指示点冲突 */
    justify-content: flex-start;
}

.hero-footer-text.align-right {
    right: 0;
    justify-content: flex-end;
}

/* 底部文字 - 带链接 */
.hero-footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}

.hero-footer-link:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* 底部文字 - 无链接（纯文本） */
.hero-footer-text > span {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
    display: inline-block;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ============================================
   竖向布局样式
   ============================================ */

/* 竖向布局容器 */
.vertical-layout {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    position: relative;
}

.vertical-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.vertical-items {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 通用版块样式 */
.vertical-section {
    width: 100%;
    height: 85vh;
    padding: 3rem 3%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* 每页之间用横线隔开，稍粗颜色稍深 */
    border-bottom: 2px solid #d2d2d7;
}

/* 最后一个版块不需要底部横线 */
.vertical-section:last-child {
    border-bottom: none;
}

/* 竖向布局底部文字区域 */
.vertical-footer-text {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 3%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #86868b;
    line-height: 1.6;
    box-sizing: border-box;
    border-top: 2px solid #d2d2d7; /* 顶部横向分割线 */
}

.vertical-footer-text.align-left {
    align-items: flex-start;
    text-align: left;
}

.vertical-footer-text.align-center {
    align-items: center;
    text-align: center;
}

.vertical-footer-text.align-right {
    align-items: flex-end;
    text-align: right;
}

/* 竖向布局底部文字 - 带链接（统一灰色） */
.vertical-footer-text a {
    color: #86868b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vertical-footer-text a:hover {
    color: #6e6e73;
    text-decoration: underline;
}

/* 竖向布局底部文字 - 无链接（纯文本，统一灰色） */
.vertical-footer-text > div > span {
    color: #86868b;
}

.section-subtitle {
    font-size: 17px;
    color: #1d1d1f;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    font-weight: 400;
    text-align: center;
}

.section-title {
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 3rem;
    line-height: 1.07;
    letter-spacing: -0.005em;
    text-align: center;
}

/* Hero版块（左文右图） - 左右1:2分配 */
.vertical-section.hero-section-vertical {
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    gap: 0;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 3%;
    height: 85vh;
    overflow: hidden;
}

/* 第一页中间的竖线容器，与图片高度对齐 */
.hero-divider {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 2rem;
    align-self: stretch;
}

/* 第一页中间的竖线，与右侧图片垂直对齐 */
.hero-divider-line {
    width: 2px;
    background: #d2d2d7;
}

.hero-content-left {
    padding-right: 2rem;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow: visible; /* 改为visible，防止按钮放大时被截断 */
}

.hero-subtitle-small {
    font-size: 17px;
    color: #1d1d1f;
    letter-spacing: 0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-title-large {
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2rem;
    line-height: 1.07;
    letter-spacing: -0.005em;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.hero-features-list li {
    font-size: 17px;
    color: #1d1d1f;
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.47;
}

.hero-features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: 600;
    font-size: 17px;
}

.hero-cta-button {
    padding: 12px 24px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.hero-cta-button:hover {
    background: #1d1d1f;
    transform: scale(1.02);
}

/* 竖向布局图片容器 */
.hero-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
    grid-column: 3;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

/* 竖向布局图片基础样式 */
.hero-image-large,
video.hero-image-large {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Hero图片显示模式 - 与横向轮播保持一致 */
/* 最大化模式 - 其中一个方向撑满界面，另一个方向可超出界面（默认） */
.hero-image-large.display-mode-maximize {
    width: 100%;
    height: calc(85vh - 6rem);
    object-fit: cover;
}

/* 自适应模式 - 两个方向都不超出界面，其中一个方向撑满界面 */
.hero-image-large.display-mode-fit {
    max-width: 100%;
    max-height: calc(85vh - 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 宽度适应模式 - 高度100%撑满（不超出），宽度按比例计算居中显示 */
.hero-image-large.display-mode-width-fit {
    width: auto;
    height: calc(85vh - 6rem);
    max-width: none;
    max-height: calc(85vh - 6rem);
    object-fit: contain;
}

/* 高度适应模式 - 宽度100%撑满（不超出），高度按比例计算居中显示 */
.hero-image-large.display-mode-height-fit {
    width: 100%;
    height: auto;
    max-height: calc(85vh - 6rem);
    max-width: 100%;
    object-fit: contain;
}

/* 卡片版块（3个风格卡片） - 参考图第二页样式 */
.vertical-section.cards-section-vertical {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 3%;
}

.cards-section-vertical .section-subtitle {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.47;
}

.cards-section-vertical .section-title {
    font-size: 56px;
    margin: 0 0 4rem 0;
    text-align: center;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.07;
    letter-spacing: -0.005em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.style-card {
    background: #f5f5f7;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.style-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.style-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.style-card-title {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
    line-height: 1.19;
}

/* 特性版块（左右布局：左侧标题，右侧2列6个特性，1:1比例） */
.vertical-section.features-section-vertical {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 5rem 3%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    background: transparent;
}

/* 左侧：标题和描述 - 占50% */
.features-left {
    flex: 1;
    padding-top: 0;
    padding-right: 4rem;
}

.features-subtitle {
    display: none;
}

.features-title {
    font-size: 32px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

.features-description {
    display: none;
}

/* 右侧：特性卡片网格 - 占50%，2列布局 */
.features-right {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #d2d2d7;
    padding-left: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    position: relative;
}

/* 竖向分隔线 - 拉通整个网格高度 */
.features-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #d2d2d7;
    transform: translateX(-50%);
}

/* 所有卡片基础样式 - 改为横向布局（图标在左，文字在右） */
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3.5rem 0;
    background: transparent;
    border-radius: 0;
    position: relative;
}

/* 左列卡片 */
.features-grid .feature-item:nth-child(1),
.features-grid .feature-item:nth-child(3),
.features-grid .feature-item:nth-child(5) {
    padding-left: 0;
    padding-right: 2rem;
}

/* 右列卡片 */
.features-grid .feature-item:nth-child(2),
.features-grid .feature-item:nth-child(4),
.features-grid .feature-item:nth-child(6) {
    padding-left: 2rem;
    padding-right: 0;
}

/* 左列横向分隔线 - 从图标位置开始（包括图标），右侧不顶到竖线 */
.features-grid .feature-item:nth-child(3)::before,
.features-grid .feature-item:nth-child(5)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 2rem; /* 与padding-right对齐，不顶到竖线 */
    height: 1px;
    background: #d2d2d7;
}

/* 右列横向分隔线 - 从图标位置开始（包括图标） */
.features-grid .feature-item:nth-child(4)::before,
.features-grid .feature-item:nth-child(6)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem; /* 从padding-left之后开始，也就是从图标位置开始 */
    right: 0;
    height: 1px;
    background: #d2d2d7;
}

/* 第一行无顶部padding */
.features-grid .feature-item:nth-child(1),
.features-grid .feature-item:nth-child(2) {
    padding-top: 0;
}

/* 最后一行无底部padding */
.features-grid .feature-item:nth-child(5),
.features-grid .feature-item:nth-child(6) {
    padding-bottom: 0;
}

/* 图标样式 - SVG图标，固定大小，与文字顶部对齐 */
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    margin: 0;
    line-height: 1;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: #1d1d1f;
    stroke-width: 1.5;
    fill: none;
}

/* 文字内容区域 */
.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #e85a50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.feature-description {
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.6;
    margin: 0;
}

/* 资源版块（3个资源卡片） - 参考图第四页样式 */
.vertical-section.resources-section-vertical {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 3%;
}

.resources-section-vertical .section-subtitle {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.47;
}

.resources-section-vertical .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 56px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.07;
    letter-spacing: -0.005em;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.resource-card {
    background: #f5f5f7;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.resource-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.resource-card-title {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
    line-height: 1.19;
    text-align: center;
}

.resource-card-description {
    font-size: 15px;
    color: #1d1d1f;
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.47;
    text-align: center;
}

/* 统计版块 - 参考图第五页样式 */
.vertical-section.stats-section-vertical {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 3%;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    padding-bottom: 4rem;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}

.stat-item {
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: 64px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.005em;
}

.stat-label {
    font-size: 15px;
    color: #6e6e73;
    font-weight: 400;
    letter-spacing: 0;
}

.principles-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
    width: 100%;
}

.principles-left {
    position: sticky;
    top: 2rem;
}

.section-subtitle {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.47;
}

.principles-title {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.07;
    margin-bottom: 2rem;
    letter-spacing: -0.005em;
}

.principles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.principle-tag {
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    border: 1px solid #1d1d1f;
    border-radius: 980px;
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 400;
}

.principles-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.principle-feature {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.principle-feature:first-child {
    border-top: none;
    padding-top: 0;
}

.principle-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 12px;
}

.principle-feature-content {
    flex: 1;
}

.principle-feature-title {
    font-size: 19px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.25rem 0;
    line-height: 1.21;
}

.principle-feature-description {
    font-size: 15px;
    color: #1d1d1f;
    line-height: 1.47;
    margin: 0;
}

/* 响应式 - 竖向布局 */
@media (max-width: 1068px) {
    .vertical-section {
        min-height: auto;
        padding: 4rem 5%;
    }

    .vertical-section.hero-section-vertical {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 5%;
    }

    /* 响应式时隐藏竖线 */
    .hero-divider {
        display: none;
    }

    .hero-content-left {
        padding-right: 0;
        grid-column: 1;
    }

    .hero-content-right {
        padding-left: 0;
        grid-column: 1;
    }

    .hero-title-large {
        font-size: 48px;
    }

    .cards-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 特性版块响应式 - 平板 */
    .vertical-section.features-section-vertical {
        flex-direction: column;
        gap: 3rem;
        padding: 4rem 4%;
    }

    .features-left {
        flex: none;
        max-width: 100%;
        padding-right: 0;
    }

    .features-right {
        border-left: none;
        padding-left: 0;
    }

    .features-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* 平板：隐藏竖向分隔线 */
    .features-grid::before {
        display: none;
    }

    /* 平板：单列布局，所有项目左对齐 */
    .features-grid .feature-item {
        padding: 1.5rem 0;
    }

    .features-grid .feature-item:nth-child(1) {
        padding-top: 0;
    }

    .features-grid .feature-item:nth-child(6) {
        padding-bottom: 0;
    }

    /* 平板：除最后一项外都有底部分隔线 */
    .features-grid .feature-item:nth-child(1),
    .features-grid .feature-item:nth-child(2),
    .features-grid .feature-item:nth-child(3),
    .features-grid .feature-item:nth-child(4),
    .features-grid .feature-item:nth-child(5) {
        border-bottom: 1px solid #d2d2d7;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .features-grid .feature-item:nth-child(6) {
        border-bottom: none;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 4rem;
        padding-bottom: 4rem;
    }

    .principles-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .principles-left {
        position: static;
    }
}

@media (max-width: 734px) {
    .vertical-section {
        padding: 3rem 4%;
    }

    .section-title {
        font-size: 32px;
    }

    .vertical-section.hero-section-vertical {
        padding: 3rem 4%;
    }

    .hero-title-large {
        font-size: 36px;
    }

    .hero-features-list li {
        font-size: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }

    .stat-number {
        font-size: 40px;
    }

    .principles-title {
        font-size: 28px;
    }

    .principle-feature-title {
        font-size: 18px;
    }

    /* 特性版块响应式 - 手机 */
    .vertical-section.features-section-vertical {
        padding: 3rem 4%;
    }

    .features-title {
        font-size: 24px;
    }

    .feature-icon {
        font-size: 28px;
        margin-bottom: 0.75rem;
    }

    .feature-title {
        font-size: 15px;
    }

    .feature-description {
        font-size: 13px;
    }
}

/* ============================================
   响应式设计 - 苹果标准断点
   ============================================ */

/* 平板端 (734px - 1068px) */
@media (min-width: 735px) and (max-width: 1068px) {
    .hero-title {
        font-size: 24px; /* 缩小至3/5: 40px * 0.6 = 24px */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 12.6px; /* 缩小至3/5: 21px * 0.6 = 12.6px */
        line-height: 1.19048;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-button {
        min-width: 200px;
    }
}

/* 移动端 (最大 734px) - Hero内容适配 */
@media (max-width: 734px) {
    /* header/sidebar 样式已迁移至 responsive.css */

    .hero-title {
        font-size: 19.2px;
        line-height: 1.125;
    }

    .hero-subtitle {
        font-size: 11.4px;
        line-height: 1.21053;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        min-width: auto;
    }

    .hero-indicators {
        bottom: 20px;
    }
}

/* 上传区域样式 - 苹果风格 */
.upload-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
}

.upload-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.upload-box {
    border: 2px dashed var(--border-medium);
    border-radius: 18px; /* 苹果大圆角 */
    margin: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-tertiary);
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 1260 / 891;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-box:hover {
    border-color: var(--apple-blue);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-medium);
}

.upload-placeholder {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1; /* 填充父容器 */
    gap: 0.8rem; /* 统一的行间距 */
}

.upload-icon {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.upload-icon-svg {
    width: 60px;
    height: 60px;
    color: #999;
    transition: all 0.3s ease;
}

.upload-placeholder:hover .upload-icon-svg {
    color: #666;
    transform: translateY(-4px);
}

.upload-placeholder p {
    font-size: 17px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.47059;
}

.file-types {
    font-size: 1rem; /* 统一文字大小 */
    color: #666;
    margin: 0;
}

.file-list {
    margin-top: 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.file-item {
    background: #f0f0f0;
    padding: 0.8rem;
    margin: 0;
    border-radius: 0;
    display: flex;
    justify-content: center; /* 🔧 修复：居中对齐 */
    align-items: center;
    width: 50%; /* 占窗口一半宽度 */
    position: relative; /* 🔧 修复：为删除按钮提供定位参考 */
}

.file-name {
    font-weight: 500;
    text-align: center; /* 文件名居中 */
    /* 🔧 修复：占据所有可用空间，在整个容器中居中 */
    flex: 1;
}

.file-remove {
    color: #fff;
    background: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem; /* 🔧 修复：添加内边距，让按钮更易点击 */
    border-radius: 4px; /* 🔧 修复：添加圆角 */
    border: none;
    transition: background 0.3s ease; /* 添加过渡效果 */
    position: absolute; /* 🔧 修复：使用绝对定位，不占据flex空间 */
    right: 0.8rem; /* 固定在右侧 */
}

.file-remove:hover {
    background: #e63946; /* 悬停时颜色变深 */
}

.file-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.process-button {
    background: var(--apple-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 17px;
    border-radius: 980px; /* 苹果胶囊形状 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    font-weight: 400;
    letter-spacing: -0.022em;
}

.process-button:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.process-button:hover:not(:disabled) {
    background: #6BB6D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
}

.process-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



/* 响应式设计 - 已迁移至 responsive.css */
/* 旧的 768px 和 480px 通用布局断点已移除，避免与 responsive.css 冲突 */

/* 彩色平面图页面布局 */
.color-plan-container,
.content-wrapper {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 1rem;
    margin: 0;
}

/* 彩色平面图页面布局特殊样式 */
#color-plan-page .color-plan-container,
#color-master-plan-page .color-plan-container {
    gap: 0; /* 取消间距，让竖线紧贴 */
    padding: 0; /* 取消内边距，让风格选择栏占满左侧 */
}

/* 户型库页面布局特殊样式 */
#layout-library-page .content-wrapper {
    gap: 0; /* 取消间距，让竖线紧贴 */
    padding: 0; /* 取消内边距，让筛选区域占满左侧 */
}

/* 家具库页面布局特殊样式 */
#furniture-library-page .content-wrapper {
    gap: 0; /* 取消间距，让竖线紧贴 */
    padding: 0; /* 取消内边距，让分类区域占满左侧 */
}

/* 主内容区域 - 用于包含content-wrapper和welcome-footer */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

/* 左侧风格选择栏 - 苹果风格 */
.style-sidebar,
.style-selection-section {
    width: 280px;
    background: var(--bg-primary);
    border-radius: 12px; /* 苹果圆角 */
    padding: 0;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 彩色平面图页面左侧风格选择栏特殊样式 */
#color-plan-page .style-sidebar,
#color-master-plan-page .style-sidebar {
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
    border-right: 1px solid #d0d0d0; /* 添加右侧细竖线 */
    height: 100%; /* 占满竖向 */
    background: white; /* 白色背景 */
}

/* 户型库页面左侧筛选区域特殊样式 */
#layout-library-page .style-selection-section {
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
    border-right: 1px solid #d0d0d0; /* 添加右侧细竖线 */
    height: 100%; /* 占满竖向 */
}

/* 家具库页面左侧分类区域特殊样式 */
#furniture-library-page .style-selection-section {
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
    border-right: 1px solid #d0d0d0; /* 添加右侧细竖线 */
    height: 100%; /* 占满竖向 */
}

/* 图纸转换页面左侧风格选择区域特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .style-selection-section {
    border-radius: 0; /* 取消圆角 */
    box-shadow: none; /* 取消阴影 */
    border-right: 1px solid #d0d0d0; /* 添加右侧细竖线 */
    height: 100%; /* 占满竖向 */
    background: white; /* 白色背景 */
}

.style-sidebar-header,
.style-header {
    padding: 1.5rem 1.5rem 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1;
}

.style-sidebar h3,
.style-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
    background: var(--bg-tertiary);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 彩色平面图页面标题区域特殊样式 - 减小高度到原来的3/5 */
#color-plan-page .style-sidebar-header,
#color-master-plan-page .style-sidebar-header {
    padding: 0.6rem 0.9rem; /* 减小到原来的3/5 (1rem * 0.6 = 0.6rem, 1.5rem * 0.6 = 0.9rem) */
    border-bottom: 1px solid #d0d0d0; /* 使用统一的横线颜色 */
    background: white; /* 白色背景 */
}

#color-plan-page .style-sidebar h3,
#color-master-plan-page .style-sidebar h3 {
    background: transparent; /* 取消背景色 */
    padding: 0.3rem 0; /* 减小到原来的3/5 (0.5rem * 0.6 = 0.3rem) */
    border-radius: 0; /* 取消圆角 */
    font-size: 16px; /* 减小字体大小 (20px * 0.8 = 16px) */
}

/* 户型库页面标题区域特殊样式 - 与彩色平面图一致 */
#layout-library-page .style-header {
    padding: 0.6rem 0.9rem; /* 减小到原来的3/5，与彩色平面图一致 */
    border-bottom: 1px solid #d0d0d0; /* 使用统一的横线颜色 */
    background: white; /* 白色背景，与彩色平面图一致 */
}

#layout-library-page .style-header h3 {
    background: transparent; /* 取消背景色 */
    padding: 0.3rem 0; /* 减小到原来的3/5，与彩色平面图一致 */
    border-radius: 0; /* 取消圆角 */
    font-size: 16px; /* 减小字体大小，与彩色平面图一致 */
}

/* 家具库页面标题区域特殊样式 - 与彩色平面图一致 */
#furniture-library-page .style-header {
    padding: 0.6rem 0.9rem; /* 减小到原来的3/5，与彩色平面图一致 */
    border-bottom: 1px solid #d0d0d0; /* 使用统一的横线颜色 */
    background: white; /* 白色背景，与彩色平面图一致 */
}

#furniture-library-page .style-header h3 {
    background: transparent; /* 取消背景色 */
    padding: 0.3rem 0; /* 减小到原来的3/5，与彩色平面图一致 */
    border-radius: 0; /* 取消圆角 */
    text-align: center; /* 居中对齐 */
    font-size: 16px; /* 减小字体大小，与彩色平面图一致 */
}

/* 图纸转换页面标题区域特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .style-header {
    padding: 0.6rem 0.9rem; /* 减小到原来的3/5 */
    border-bottom: 1px solid #d0d0d0; /* 使用统一的横线颜色 */
    background: white; /* 白色背景 */
}

#image-to-drawing-page .style-header h3 {
    background: transparent; /* 取消背景色 */
    padding: 0.3rem 0; /* 减小到原来的3/5 */
    border-radius: 0; /* 取消圆角 */
    font-size: 16px; /* 减小字体大小 */
}

.style-library-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}

/* 彩色平面图页面风格库容器特殊样式 - 改为卡片形式 */
#color-plan-page .style-library-container,
#color-master-plan-page .style-library-container {
    padding: 0 1.5rem 1.5rem; /* 恢复内边距，与图纸转换一致 */
}

/* 图纸转换页面风格库容器特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .style-library-container {
    padding: 0 1.5rem 1.5rem; /* 与彩色平面图一致 */
}

.style-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem; /* 为第一个风格项目添加顶部空白，改为原来的2倍 */
}

/* 彩色平面图页面风格库特殊样式 - 改为卡片形式 */
#color-plan-page .style-library,
#color-master-plan-page .style-library {
    gap: 1rem; /* 恢复间距，与图纸转换一致 */
    padding-top: 1rem; /* 保持顶部空白，改为原来的2倍 */
}

/* 图纸转换页面风格库特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .style-library {
    gap: 1rem; /* 与彩色平面图一致 */
    padding-top: 1rem; /* 保持顶部空白，改为原来的2倍 */
}

.style-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px; /* 苹果圆角 */
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

/* 彩色平面图页面风格项 - 图片占满卡片，1:1宽高比 */
#color-plan-page .style-item,
#color-master-plan-page .style-item {
    padding: 0; /* 移除内边距，让图片占满 */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 隐藏溢出内容 */
    aspect-ratio: 1 / 1; /* 1:1宽高比 */
}

/* 图纸转换页面风格项 - 与彩色平面图一致 */
#image-to-drawing-page .style-item {
    padding: 0; /* 移除内边距，让图片占满 */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 隐藏溢出内容 */
    aspect-ratio: 1 / 1; /* 1:1宽高比 */
}

.style-item:hover {
    border-color: #4a4a4a; /* 悬停时深灰色边框 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.15);
    background: var(--bg-secondary);
}

.style-item.active {
    border-color: #87CEEB;
    background: #f0f7ff;
}

.style-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0.5rem;
}

/* 彩色平面图页面风格项图片 - 占满除文字外的所有区域 */
#color-plan-page .style-item img,
#color-master-plan-page .style-item img {
    flex: 1; /* 占据剩余空间 */
    width: 100%; /* 宽度占满 */
    object-fit: cover; /* 保持比例裁剪 */
    margin-bottom: 0; /* 移除底部间距 */
    border-radius: 12px 12px 0 0; /* 只保留顶部圆角 */
    min-height: 0; /* 允许缩小 */
}

/* 图纸转换页面风格项图片 - 与彩色平面图一致 */
#image-to-drawing-page .style-item img {
    flex: 1; /* 占据剩余空间 */
    width: 100%; /* 宽度占满 */
    object-fit: cover; /* 保持比例裁剪 */
    margin-bottom: 0; /* 移除底部间距 */
    border-radius: 12px 12px 0 0; /* 只保留顶部圆角 */
    min-height: 0; /* 允许缩小 */
}

.style-item span {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* 彩色平面图页面风格项文字 - 固定在底部 */
#color-plan-page .style-item span,
#color-master-plan-page .style-item span {
    padding: 0.6rem 0.8rem; /* 减小内边距，让卡片更紧凑 */
    background: white; /* 白色背景 */
    border-top: 1px solid var(--border-light); /* 顶部边框 */
    flex-shrink: 0; /* 不缩小 */
    font-size: 0.85rem; /* 稍微减小字体 */
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 彩色平面图页面选中风格的文字样式 */
#color-plan-page .style-item.active span,
#color-master-plan-page .style-item.active span {
    background: #4a4a4a; /* 深灰色背景 */
    color: white; /* 白色文字 */
    font-weight: 600; /* 加粗 */
}

/* 图纸转换页面风格项文字 - 与彩色平面图一致 */
#image-to-drawing-page .style-item span {
    padding: 0.6rem 0.8rem; /* 减小内边距，让卡片更紧凑 */
    background: white; /* 白色背景 */
    border-top: 1px solid var(--border-light); /* 顶部边框 */
    flex-shrink: 0; /* 不缩小 */
    font-size: 0.85rem; /* 稍微减小字体 */
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 图纸转换页面选中风格的文字样式 */
#image-to-drawing-page .style-item.active span {
    background: #4a4a4a; /* 深灰色背景 */
    color: white; /* 白色文字 */
    font-weight: 600; /* 加粗 */
}

/* "更多风格即将上线"样式 */
.upcoming-styles {
    cursor: default;
    opacity: 0.7;
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    border-radius: 6px;
}

.add-style-button {
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 980px; /* 苹果胶囊形状 */
    padding: 10px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    letter-spacing: -0.022em;
}

.add-style-button:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
}

/* 文件处理区域布局 */
.file-processing-section {
    flex: 1;
    display: flex;
    min-height: 0;
    padding: 0.5rem 1rem;
}

/* 彩色平面图页面右侧区域特殊样式 */
#color-plan-page .file-processing-section,
#color-master-plan-page .file-processing-section {
    padding: 0; /* 取消内边距，占满整个右侧 */
    background: white; /* 白色背景 */
}

/* 图纸转换页面右侧区域特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .file-processing-section {
    padding: 0; /* 取消内边距，占满整个右侧 */
    background: white; /* 白色背景 */
}

/* 平面图展示区域 */
.plan-display-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
}

/* 彩色平面图页面平面图展示区域特殊样式 */
#color-plan-page .plan-display-section,
#color-master-plan-page .plan-display-section {
    padding: 0; /* 取消内边距，四周不留空白 */
    gap: 0; /* 取消间距 */
}

/* 图纸转换页面平面图展示区域特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .plan-display-section {
    padding: 0; /* 取消内边距，四周不留空白 */
    gap: 0; /* 取消间距 */
}

/* 平面图框 */
.plan-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 0; /* 不圆角 */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 保持原来的高度，根据1260x891比例计算宽度 */
    flex: 1;
    min-height: 0;
    width: auto;
    aspect-ratio: 1260 / 891;
    align-self: center;
}

/* 彩色平面图页面平面图框特殊样式 */
#color-plan-page .plan-box,
#color-master-plan-page .plan-box {
    width: 100%; /* 宽度占满 */
    aspect-ratio: auto; /* 取消宽高比限制 */
    align-self: stretch; /* 拉伸占满 */
    border: none; /* 取消所有边框 */
    border-bottom: 1px solid #d0d0d0; /* 只保留底部横线 */
    background: white; /* 白色背景 */
}

/* 彩色平面图页面平面图框悬停效果 */
#color-plan-page .plan-box:hover,
#color-master-plan-page .plan-box:hover {
    border: none; /* 取消边框 */
    border-bottom: 1px solid #d0d0d0; /* 保持底部横线 */
    box-shadow: none; /* 取消阴影 */
    background: white; /* 白色背景 */
}

/* 图纸转换页面平面图框特殊样式 - 与彩色平面图一致 */
#image-to-drawing-page .plan-box {
    width: 100%; /* 宽度占满 */
    aspect-ratio: auto; /* 取消宽高比限制 */
    align-self: stretch; /* 拉伸占满 */
    border: none; /* 取消所有边框 */
    border-bottom: 1px solid #d0d0d0; /* 只保留底部横线 */
    background: white; /* 白色背景 */
}

/* 图纸转换页面平面图框悬停效果 */
#image-to-drawing-page .plan-box:hover {
    border: none; /* 取消边框 */
    border-bottom: 1px solid #d0d0d0; /* 保持底部横线 */
    box-shadow: none; /* 取消阴影 */
    background: white; /* 白色背景 */
}

.plan-box:hover {
    border-color: var(--apple-blue);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-medium);
}

/* 上传提示区域 */
.upload-placeholder {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    height: 100%;
}

.upload-icon {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.upload-icon-svg {
    width: 60px;
    height: 60px;
    color: #999;
    transition: all 0.3s ease;
}

.upload-placeholder:hover .upload-icon-svg {
    color: #666;
    transform: translateY(-4px);
}

.upload-placeholder p {
    font-size: 17px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.47059;
}

.file-types {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* 文件信息显示区域 */
.file-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.file-info-content {
    background: #f0f0f0;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.file-name-display {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.file-remove-btn {
    color: #fff;
    background: #ff4757;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border: none;
    transition: background 0.3s ease;
}

.file-remove-btn:hover {
    background: #e63946;
}

.file-hint {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

/* 处理中显示区域 */
.processing-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.processing-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* 进度条在框的底部边缘 */
.progress-bar-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0; /* 不圆角，与外框保持一致 */
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--apple-blue);
    width: 0%;
    transition: width 0.3s ease;
}

/* 结果显示区域 */
.result-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 彩色平面图页面结果显示区域 - 图片智能边框（由JavaScript动态添加） */
#color-plan-page .result-display,
#color-master-plan-page .result-display {
    padding: 0; /* 不添加内边距 */
}

#color-plan-page .result-display img,
#color-master-plan-page .result-display img {
    /* 边框由JavaScript智能判断后动态添加 */
    box-sizing: border-box; /* 边框包含在尺寸内 */
    width: auto; /* 自动宽度 */
    height: auto; /* 自动高度 */
    max-width: 100%; /* 最大宽度不超过容器 */
    max-height: 100%; /* 最大高度不超过容器 */
}

/* 图纸转换页面结果显示区域 - 与彩色平面图一致 */
#image-to-drawing-page .result-display {
    padding: 0; /* 不添加内边距 */
}

#image-to-drawing-page .result-display img {
    /* 边框由JavaScript智能判断后动态添加 */
    box-sizing: border-box; /* 边框包含在尺寸内 */
    width: auto; /* 自动宽度 */
    height: auto; /* 自动高度 */
    max-width: 100%; /* 最大宽度不超过容器 */
    max-height: 100%; /* 最大高度不超过容器 */
}

/* 按钮区域：框外下方，居中并排 */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
}

/* 彩色平面图页面按钮区域特殊样式 */
#color-plan-page .action-buttons,
#color-master-plan-page .action-buttons {
    padding: 1.5rem; /* 添加内边距 */
}

/* 处理按钮和下载按钮样式 - 苹果风格 */
.process-button,
.download-button {
    background: var(--apple-blue);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 17px;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    font-weight: 400;
    letter-spacing: -0.022em;
    min-width: 140px;
}

.process-button:hover:not(:disabled),
.download-button:hover:not(:disabled) {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.process-button:disabled,
.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 彩色平面图页面按钮特殊样式 */
#color-plan-page .process-button,
#color-master-plan-page .process-button {
    background: #87CEEB; /* 天蓝色背景 */
    border: 1px solid #87CEEB;
    box-shadow: none; /* 取消阴影 */
}

#color-plan-page .download-button,
#color-master-plan-page .download-button {
    background: transparent; /* 无背景 */
    color: #333; /* 深色文字 */
    border: 1px solid #d0d0d0; /* 细边框 */
    box-shadow: none; /* 取消阴影 */
}

/* 彩色平面图页面按钮悬停效果 - 取消缩放和光晕 */
#color-plan-page .process-button:hover:not(:disabled),
#color-plan-page .download-button:hover:not(:disabled),
#color-master-plan-page .process-button:hover:not(:disabled),
#color-master-plan-page .download-button:hover:not(:disabled) {
    transform: none; /* 取消缩放效果 */
    box-shadow: none; /* 取消光晕效果 */
}

#color-plan-page .process-button:hover:not(:disabled),
#color-master-plan-page .process-button:hover:not(:disabled) {
    background: #87CEEB; /* 保持天蓝色背景 */
}

#color-plan-page .download-button:hover:not(:disabled),
#color-master-plan-page .download-button:hover:not(:disabled) {
    background: #f5f5f5; /* 浅灰色背景 */
}

/* 彩色平面图页面按钮禁用状态 - 背景颜色不变化 */
#color-plan-page .process-button:disabled,
#color-master-plan-page .process-button:disabled {
    background: #87CEEB; /* 保持天蓝色背景 */
    opacity: 0.5; /* 降低透明度表示禁用 */
    box-shadow: none; /* 取消阴影 */
}

#color-plan-page .download-button:disabled,
#color-master-plan-page .download-button:disabled {
    background: transparent; /* 保持无背景 */
    opacity: 0.5; /* 降低透明度表示禁用 */
    box-shadow: none; /* 取消阴影 */
}

/* 风格选择滚动条样式 */
.style-library-container::-webkit-scrollbar {
    width: 6px;
}

.style-library-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.style-library-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.style-library-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================
   户型库网格布局样式
   ============================================ */

.layout-display-section {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
    min-height: 0; /* 确保flex子元素可以正确收缩 */
    display: flex;
    flex-direction: column;
}

/* 户型库页面右侧展示区域特殊样式 */
#layout-library-page .layout-display-section {
    padding: 0; /* 取消所有内边距，占满整个右侧 */
    background: white; /* 改为白色背景 */
}

.layout-grid-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
}

/* 户型库页面网格容器特殊样式 */
#layout-library-page .layout-grid-container {
    max-width: none; /* 取消最大宽度限制 */
    margin: 0; /* 取消居中 */
    padding: 0; /* 取消内边距 */
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}

/* 户型库页面网格特殊样式 */
#layout-library-page .layout-grid {
    border-top: none; /* 取消顶部边框 */
    border-left: none; /* 取消左侧边框 */
}

.layout-card {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow: hidden; /* 防止图片悬停时溢出 */
}

.layout-card:hover .layout-card-image {
    filter: contrast(1.15) brightness(0.95);
    -webkit-filter: contrast(1.15) brightness(0.95);
}

.layout-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;  /* 使用cover填满容器，避免空白 */
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s ease, filter 0.3s ease;
    /* 🔧 关键修复：解决挨近线条深浅不一的问题 */
    /* 使用CSS滤镜增强对比度，使线条深浅更一致 */
    filter: contrast(1.1) brightness(1.0);
    -webkit-filter: contrast(1.1) brightness(1.0);
    /* 使用crisp-edges保持边缘锐利 */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    /* 强制硬件加速 */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.layout-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.layout-info-text {
    font-size: 0.85rem;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout-download-btn {
    padding: 6px 12px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.layout-download-btn:hover:not(:disabled) {
    background: #000;
    color: white;
}

.layout-download-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.layout-download-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   家具库网格布局样式
   ============================================ */

.furniture-category-container {
    padding: 0 1.5rem 1.5rem; /* 添加内边距，与彩色平面图一致 */
    flex: 1;
    overflow-y: auto;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 添加间距，与彩色平面图一致 */
    padding-top: 1rem; /* 添加顶部空白，改为原来的2倍 */
}

.category-btn {
    padding: 0.8rem 1rem; /* 保持原有高度 */
    background: var(--bg-primary); /* 白色背景 */
    border: 1px solid var(--border-light); /* 添加边框，与彩色平面图一致 */
    border-radius: 12px; /* 添加圆角，与彩色平面图一致 */
    cursor: pointer;
    text-align: center; /* 居中对齐 */
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 与彩色平面图一致的过渡效果 */
    box-shadow: var(--shadow-medium); /* 添加阴影，与彩色平面图一致 */
}

.category-btn:hover {
    border-color: #4a4a4a; /* 悬停时深灰色边框 */
    transform: translateY(-2px); /* 向上位移 */
    box-shadow: 0 4px 12px rgba(74, 74, 74, 0.15); /* 增强阴影 */
    background: var(--bg-secondary); /* 浅灰色背景 */
}

.category-btn.active {
    background: #3d3d3d; /* 黑色背景，与消息中心导航栏一致 */
    color: white; /* 白色文字，与消息中心导航栏一致 */
    border-color: #3d3d3d; /* 黑色边框 */
    font-weight: 500; /* 与消息中心导航栏一致 */
}

.furniture-display-section {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
    min-height: 0; /* 确保flex子元素可以正确收缩 */
    display: flex;
    flex-direction: column;
}

/* 家具库页面右侧展示区域特殊样式 */
#furniture-library-page .furniture-display-section {
    padding: 0; /* 取消所有内边距，占满整个右侧 */
    background: white; /* 改为白色背景 */
}

.furniture-grid-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
}

/* 家具库页面网格容器特殊样式 */
#furniture-library-page .furniture-grid-container {
    max-width: none; /* 取消最大宽度限制 */
    margin: 0; /* 取消居中 */
    padding: 0; /* 取消内边距 */
}

.furniture-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 0;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
}

/* 家具库页面网格特殊样式 */
#furniture-library-page .furniture-grid {
    border-top: none; /* 取消顶部边框 */
    border-left: none; /* 取消左侧边框 */
}

.furniture-card {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    overflow: hidden; /* 防止图片悬停时溢出 */
}

/* 默认悬停效果：使用滤镜而非透明度，避免显示空白区域 */
.furniture-card:hover .furniture-card-image {
    filter: contrast(1.15) brightness(0.95);
    -webkit-filter: contrast(1.15) brightness(0.95);
}

/* 有悬停图片的卡片：禁用滤镜效果，只切换图片 */
.furniture-card.has-hover-image:hover .furniture-card-image {
    filter: contrast(1.1) brightness(1.0);
    -webkit-filter: contrast(1.1) brightness(1.0);
}

.furniture-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;  /* 使用cover填满容器，避免空白 */
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s ease, filter 0.3s ease;
    /* 🔧 关键修复：解决挨近线条深浅不一的问题 */
    /* 使用CSS滤镜增强对比度，使线条深浅更一致 */
    filter: contrast(1.1) brightness(1.0);
    -webkit-filter: contrast(1.1) brightness(1.0);
    /* 使用crisp-edges保持边缘锐利 */
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    /* 强制硬件加速 */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.furniture-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.furniture-name-text {
    font-size: 0.85rem;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.furniture-download-btn {
    padding: 6px 12px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.furniture-download-btn:hover:not(:disabled) {
    background: #000;
    color: white;
}

.furniture-download-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.furniture-download-btn svg {
    width: 14px;
    height: 14px;
}

/* 加载提示 */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1600px) {
    .layout-grid,
    .furniture-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .layout-grid,
    .furniture-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .layout-grid,
    .furniture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .layout-grid,
    .furniture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 加载更多按钮 */
.load-more-btn {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.load-more-btn button {
    padding: 12px 32px;
    font-size: 17px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 980px; /* 苹果胶囊形状 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    font-weight: 400;
    letter-spacing: -0.022em;
}

.load-more-btn button:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.load-more-btn button:active {
    transform: translateY(0);
}

/* 下载点数徽章样式 */
.download-points-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #87CEEB;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* 动态块徽章样式 - 只保留边框和文字，无背景，黑色 */
.dynamic-block-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   黑色模式样式
   ============================================ */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* 头部导航栏 */
body.dark-mode .header {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid #333;
}

body.dark-mode .header-slogan {
    color: #999;
}

/* 侧边栏 */
body.dark-mode .sidebar {
    background: #1e1e1e;
    border-right: 1px solid #333;
}

body.dark-mode .nav-item {
    color: #999;
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .nav-tooltip {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
}

/* 主内容区域 */
body.dark-mode .content-area {
    background: #1a1a1a;
}

body.dark-mode .page-content {
    background: #1a1a1a;
}

body.dark-mode .main-container {
    background: #1a1a1a;
}

body.dark-mode .page {
    background: #1a1a1a;
}

body.dark-mode .main-content {
    background: #1a1a1a;
}

body.dark-mode .content-wrapper {
    background: #1a1a1a;
}

body.dark-mode .color-plan-container {
    background: #1a1a1a;
}

/* 用户头像 */
body.dark-mode .user-avatar .avatar-text {
    color: white !important;
}

/* 用户菜单 */
body.dark-mode .user-menu {
    background: #2a2a2a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

body.dark-mode .user-menu-name {
    color: #e0e0e0;
}

body.dark-mode .user-menu-email {
    color: #999;
}

body.dark-mode .menu-item {
    color: #e0e0e0;
}

body.dark-mode .menu-item:hover {
    background-color: #3a3a3a;
}

body.dark-mode .menu-logout-item {
    background-color: #3a2020;
    color: #ff6b6b;
}

body.dark-mode .menu-logout-item:hover {
    background-color: #4a2525;
}

/* 卡片和容器 */
body.dark-mode .card,
body.dark-mode .upload-box {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .upload-box:hover {
    border-color: #0d6efd;
    background: #333;
}

/* 文本 */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #e0e0e0;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode div {
    color: #b0b0b0;
}

/* 按钮 */
body.dark-mode .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

/* 输入框 */
body.dark-mode input:not([type="range"]),
body.dark-mode textarea,
body.dark-mode select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode input:not([type="range"]):focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background: #333;
    border-color: #0d6efd;
}

/* 模态框 */
body.dark-mode .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .modal-header {
    border-bottom-color: #444;
}

body.dark-mode .modal-footer {
    border-top-color: #444;
}

/* 表格 */
body.dark-mode table {
    color: #e0e0e0;
}

body.dark-mode th {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode td {
    border-color: #444;
}

body.dark-mode tr:hover {
    background: #333;
}

/* 彩色平面图页面 */
body.dark-mode #color-plan-page {
    background: #1a1a1a;
}

body.dark-mode .style-sidebar {
    background: #333;
    border-right-color: #444;
}

body.dark-mode .style-sidebar-header {
    background: #1a1a1a;
}

body.dark-mode .style-sidebar-header h3 {
    color: #e0e0e0;
}

body.dark-mode .style-library-container {
    background: #333;
}

body.dark-mode .upload-section,
body.dark-mode .style-section,
body.dark-mode .result-section {
    background: #2a2a2a;
}

body.dark-mode .file-processing-section {
    background: #1a1a1a !important;
}

body.dark-mode .colored-plan-section {
    background: #1a1a1a;
}

body.dark-mode .plan-display-section {
    background: #1a1a1a;
}

body.dark-mode .upload-zone {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .upload-zone:hover {
    border-color: #0d6efd;
    background: #333;
}

body.dark-mode .preview-container {
    background: #2a2a2a;
}

body.dark-mode .preview-image-wrapper {
    background: #333;
}

body.dark-mode .action-buttons {
    background: #1a1a1a;
}

body.dark-mode .style-library {
    background: #2a2a2a;
}

body.dark-mode .result-placeholder {
    background: #2a2a2a;
    color: #999;
}

body.dark-mode .file-info {
    color: #999;
}

body.dark-mode .upload-icon {
    color: #666;
}

body.dark-mode .upload-icon-svg {
    color: #666;
}

body.dark-mode .upload-placeholder:hover .upload-icon-svg {
    color: #999;
}

body.dark-mode .style-item {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .style-item:hover {
    border-color: #0d6efd;
    background: #333;
}

body.dark-mode .style-item.active {
    border-color: #0d6efd;
    background: #1a3a5a;
}

body.dark-mode .style-item span {
    color: #e0e0e0;
}

/* 深色模式下彩色平面图页面风格项文字 - 未选中状态 */
body.dark-mode #color-plan-page .style-item span,
body.dark-mode #color-master-plan-page .style-item span {
    background: #333; /* 深色背景 */
    color: #e0e0e0; /* 浅色文字 */
    border-top-color: #444; /* 深色边框 */
}

/* 深色模式下彩色平面图页面选中风格的文字样式 */
body.dark-mode #color-plan-page .style-item.active span,
body.dark-mode #color-master-plan-page .style-item.active span {
    background: #555; /* 深色模式下的深灰色背景 */
    color: white; /* 白色文字 */
    font-weight: 600; /* 加粗 */
}

/* 深色模式下图纸转换页面风格项文字 - 未选中状态 */
body.dark-mode #image-to-drawing-page .style-item span {
    background: #333; /* 深色背景 */
    color: #e0e0e0; /* 浅色文字 */
    border-top-color: #444; /* 深色边框 */
}

/* 深色模式下图纸转换页面选中风格的文字样式 */
body.dark-mode #image-to-drawing-page .style-item.active span {
    background: #555; /* 深色模式下的深灰色背景 */
    color: white; /* 白色文字 */
    font-weight: 600; /* 加粗 */
}

body.dark-mode .add-style-button {
    background: #0d6efd;
    color: white;
}

body.dark-mode .add-style-button:hover {
    background: #0b5ed7;
}

/* 户型库页面 */
body.dark-mode #layout-library-page {
    background: #1a1a1a;
}

body.dark-mode .style-selection-section {
    background: #333;
    border-right-color: #444;
}

body.dark-mode .style-header {
    background: #1a1a1a;
}

body.dark-mode .style-header h3 {
    color: #e0e0e0;
}

body.dark-mode .filter-container {
    background: #333;
}

body.dark-mode .filter-section,
body.dark-mode .layout-grid {
    background: #2a2a2a;
}

body.dark-mode .layout-display-section {
    background: #1a1a1a;
}

body.dark-mode .layout-grid-container {
    background: #1a1a1a;
}

body.dark-mode .filter-group {
    background: #333;
}

body.dark-mode .filter-group-header {
    color: #e0e0e0;
}

body.dark-mode .filter-label {
    color: #e0e0e0;
}

body.dark-mode .filter-btn,
body.dark-mode .product-type-btn,
body.dark-mode .ratio-btn,
body.dark-mode .room-count-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .product-type-btn:hover,
body.dark-mode .ratio-btn:hover,
body.dark-mode .room-count-btn:hover {
    background: #3a3a3a;
    border-color: #0d6efd;
}

body.dark-mode .filter-btn.active,
body.dark-mode .product-type-btn.active,
body.dark-mode .ratio-btn.active,
body.dark-mode .room-count-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

body.dark-mode .layout-card {
    background: #333;
    border-color: #444;
}

body.dark-mode .layout-card:hover {
    border-color: #0d6efd;
    background: #3a3a3a;
}

body.dark-mode .apply-filter-btn {
    background: #0d6efd;
    color: white;
}

body.dark-mode .apply-filter-btn:hover {
    background: #0b5ed7;
}

/* 家具库页面 */
body.dark-mode #furniture-library-page {
    background: #1a1a1a;
}

body.dark-mode .furniture-category-container {
    background: #333;
}

body.dark-mode .category-list {
    background: #333;
}

body.dark-mode .furniture-display-section {
    background: #1a1a1a;
}

body.dark-mode .furniture-grid-container {
    background: #1a1a1a;
}

body.dark-mode .furniture-categories,
body.dark-mode .furniture-grid {
    background: #2a2a2a;
}

body.dark-mode .category-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .category-btn:hover {
    background: #3a3a3a;
    border-color: #0d6efd;
}

body.dark-mode .category-btn.active {
    background: #555; /* 暗黑模式下使用稍亮的灰色背景 */
    color: white;
    border-color: #555;
    font-weight: 500;
}

body.dark-mode .furniture-card {
    background: #333;
    border-color: #444;
}

body.dark-mode .furniture-card:hover {
    border-color: #0d6efd;
    background: #3a3a3a;
}

/* 图纸转换页面 */
body.dark-mode #drawing-convert-page,
body.dark-mode #image-to-drawing-page {
    background: #1a1a1a;
}

body.dark-mode .convert-upload-section,
body.dark-mode .convert-result-section {
    background: #2a2a2a;
}

body.dark-mode .upload-area {
    background: #1a1a1a;
}

/* 消息中心页面 */
body.dark-mode #message-center-page,
body.dark-mode #messages-page {
    background: #1a1a1a;
}

body.dark-mode .messages-full-container {
    background: #1a1a1a;
}

body.dark-mode .messages-container {
    background: #2a2a2a;
}

body.dark-mode .messages-filter-tabs {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode .messages-filter-tab {
    color: #999;
}

body.dark-mode .messages-filter-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

body.dark-mode .message-list,
body.dark-mode .message-detail {
    background: #2a2a2a;
}

body.dark-mode .message-item {
    background: #333;
    border-color: #444;
}

body.dark-mode .message-item:hover {
    background: #3a3a3a;
}

body.dark-mode .message-item.unread {
    background: #2a3a4a;
}

body.dark-mode .message-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .message-title {
    color: #e0e0e0;
}

body.dark-mode .message-time {
    color: #999;
}

/* 页面标题和标签 */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode label,
body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .upload-box p,
body.dark-mode .upload-box span {
    color: #999;
}

body.dark-mode .layout-card-title,
body.dark-mode .furniture-card-title {
    color: #e0e0e0;
}

body.dark-mode .layout-card-info,
body.dark-mode .furniture-card-info {
    color: #999;
}

body.dark-mode .loading-message {
    color: #999;
}

body.dark-mode .process-button {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

body.dark-mode .process-button:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

body.dark-mode .download-button {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

body.dark-mode .download-button:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode .process-button:disabled,
body.dark-mode .download-button:disabled {
    background: transparent;
    color: #666;
    border-color: #666;
}

/* 确保图标内的文字颜色不变 */
body.dark-mode .menu-item-icon,
body.dark-mode .nav-icon,
body.dark-mode svg text,
body.dark-mode .icon-text {
    color: inherit !important;
    fill: currentColor !important;
}

/* 鼠标悬停在家具卡片上时，动态块徽章的文字和边框变为白色 */
.furniture-card:hover .dynamic-block-badge {
    color: #fff;
    border-color: #fff;
}

/* 标签容器（同时显示点数和动态块时使用） */
.furniture-badges-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

/* 容器内的徽章样式 */
.furniture-badges-container .download-points-badge {
    position: static;
    background: #87CEEB;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.furniture-badges-container .dynamic-block-badge {
    position: static;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== 深色模式补充样式 ==================== */

/* 滚动条深色模式 */
body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode ::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.4);
}

body.dark-mode * {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* 懒加载图片深色模式 */
body.dark-mode .lazy-image {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
}

body.dark-mode .lazy-image.error {
    background: #333;
}

/* 启动动画深色模式 */
body.dark-mode .startup-animation {
    background: #1a1a1a;
}

/* 动态块徽章深色模式 */
body.dark-mode .furniture-badges-container .dynamic-block-badge {
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .furniture-card:hover .dynamic-block-badge {
    color: #fff;
    border-color: #fff;
}

/* ==================== 深色模式补充修复 ==================== */

/* 彩色平面图页面 - 左侧风格选择栏 */
body.dark-mode #color-plan-page .style-sidebar,
body.dark-mode #color-master-plan-page .style-sidebar {
    background: #2a2a2a;
    border-right-color: #444;
}

body.dark-mode #color-plan-page .style-sidebar-header,
body.dark-mode #color-master-plan-page .style-sidebar-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode #color-plan-page .style-sidebar h3,
body.dark-mode #color-master-plan-page .style-sidebar h3 {
    color: #e0e0e0;
}

/* 图纸转换页面 - 左侧风格选择栏 */
body.dark-mode #image-to-drawing-page .style-selection-section {
    background: #2a2a2a;
    border-right-color: #444;
}

/* 户型库页面 - 左侧筛选区域 */
body.dark-mode #layout-library-page .style-selection-section {
    background: #2a2a2a;
    border-right-color: #444;
}

body.dark-mode #layout-library-page .style-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

/* 家具库页面 - 左侧分类区域 */
body.dark-mode #furniture-library-page .style-selection-section {
    background: #2a2a2a;
    border-right-color: #444;
}

body.dark-mode .furniture-category-container {
    background: #2a2a2a;
}

body.dark-mode .category-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode .category-header h3 {
    color: #e0e0e0;
}

/* 家具卡片 */
body.dark-mode .furniture-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .furniture-card:hover {
    background: #333;
    border-color: #555;
}

body.dark-mode .furniture-card-info {
    background: #333;
    border-top-color: #444;
}

body.dark-mode .furniture-card-title {
    color: #e0e0e0;
}

body.dark-mode .furniture-card-category {
    color: #999;
}

/* 户型卡片 */
body.dark-mode .layout-card-info {
    background: #333;
}

body.dark-mode .layout-card-title {
    color: #e0e0e0;
}

body.dark-mode .layout-card-details {
    color: #999;
}

/* 上传区域 */
body.dark-mode .upload-placeholder {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .upload-placeholder:hover {
    background: #333;
    border-color: #555;
}

body.dark-mode .upload-text {
    color: #999;
}

body.dark-mode .upload-hint {
    color: #777;
}

/* 风格库容器 */
body.dark-mode .style-library-container {
    background: #2a2a2a;
}

/* 分类按钮 */
body.dark-mode .category-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .category-btn:hover {
    background: #3a3a3a;
    border-color: #555;
}

body.dark-mode .category-btn.active {
    background: #444;
    color: #fff;
    border-color: #555;
}

/* 分类列表 */
body.dark-mode .category-list {
    background: #2a2a2a;
}

body.dark-mode .category-item {
    color: #e0e0e0;
}

body.dark-mode .category-item:hover {
    background: #333;
}

body.dark-mode .category-item.active {
    background: #444;
    color: #fff;
}

/* ==================== 深色模式补充修复 - 上传区域 ==================== */

/* 上传框 */
body.dark-mode .upload-box {
    background: #333;
    border-color: #555;
}

body.dark-mode .upload-box:hover {
    background: #3a3a3a;
    border-color: #0071e3;
}

/* 上传占位符文字 */
body.dark-mode .upload-placeholder p {
    color: #999;
}

body.dark-mode .file-types {
    color: #777;
}

/* 文件列表 */
body.dark-mode .file-item {
    background: #333;
    border-color: #444;
}

body.dark-mode .file-name {
    color: #e0e0e0;
}

body.dark-mode .file-size {
    color: #999;
}

/* 主内容区域背景 */
body.dark-mode .main-content-area {
    background: #1a1a1a;
}

body.dark-mode .content-main {
    background: #1a1a1a;
}

/* 右侧显示区域 */
body.dark-mode .display-area {
    background: #1a1a1a;
}

body.dark-mode .result-display-area {
    background: #1a1a1a;
}

/* 彩色平面图页面主区域 */
body.dark-mode #color-plan-page .main-content {
    background: #1a1a1a;
}

body.dark-mode #color-plan-page .content-area {
    background: #1a1a1a;
}

/* 图纸转换页面主区域 */
body.dark-mode #image-to-drawing-page .main-content {
    background: #1a1a1a;
}

body.dark-mode #image-to-drawing-page .content-area {
    background: #1a1a1a;
}

/* ==================== 深色模式 - 下载按钮修复 ==================== */

/* 户型库下载按钮 */
body.dark-mode .layout-download-btn {
    background: transparent;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .layout-download-btn:hover:not(:disabled) {
    background: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode .layout-download-btn:disabled {
    background: #444;
    border-color: #444;
    color: #666;
}

/* 家具库下载按钮 */
body.dark-mode .furniture-download-btn {
    background: transparent;
    color: #e0e0e0;
    border-color: #e0e0e0;
}

body.dark-mode .furniture-download-btn:hover:not(:disabled) {
    background: #e0e0e0;
    color: #1a1a1a;
}

body.dark-mode .furniture-download-btn:disabled {
    background: #444;
    border-color: #444;
    color: #666;
}

/* 彩色平面图页面下载按钮 */
body.dark-mode #color-plan-page .download-button {
    background: transparent;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode #color-plan-page .download-button:hover:not(:disabled) {
    background: #333;
    color: #fff;
    border-color: #666;
}

body.dark-mode #color-plan-page .download-button:disabled {
    background: transparent;
    color: #666;
    border-color: #444;
    opacity: 0.5;
}

/* 彩色平面图和总平面图页面 - 深色模式下的plan-box背景 */
body.dark-mode #color-plan-page .plan-box,
body.dark-mode #color-master-plan-page .plan-box {
    background: #000000; /* 黑色背景 */
    border-bottom-color: #444; /* 深色边框 */
}

/* 家具分类标题栏 - 与户型库筛选标题栏样式一致 */
body.dark-mode #furniture-library-page .style-header {
    background: #2a2a2a;
    border-bottom-color: #444;
}

body.dark-mode #furniture-library-page .style-header h3 {
    color: #e0e0e0;
    background: transparent;
}

/* ==================== 深色模式 - 面积范围滑块修复 ==================== */

/* 滑块轨道 - 使用更亮的颜色，确保在深色背景下可见 */
body.dark-mode .slider-track {
    background: #aaa !important;
}

/* 最小面积滑块 - 白色 */
body.dark-mode input.slider#minArea::-webkit-slider-thumb {
    background: #fff !important;
}

body.dark-mode input.slider#minArea::-moz-range-thumb {
    background: #fff !important;
}

/* 最大面积滑块 - 白色 */
body.dark-mode input.slider#maxArea::-webkit-slider-thumb {
    background: #fff !important;
}

body.dark-mode input.slider#maxArea::-moz-range-thumb {
    background: #fff !important;
}

/* 范围值显示文字 */
body.dark-mode .range-values {
    color: #e0e0e0;
}

body.dark-mode .range-values span {
    color: #e0e0e0;
}

/* ==================== 深色模式 - 竖向布局适配 ==================== */

/* 竖向布局容器 */
body.dark-mode .vertical-layout {
    background: #1a1a1a;
}

/* 竖向布局版块 */
body.dark-mode .vertical-section {
    background: #1a1a1a;
    border-bottom-color: #333;
}

/* 竖向布局底部文字区域 */
body.dark-mode .vertical-footer-text {
    background: #1a1a1a;
    color: #999;
    border-top-color: #333;
}

body.dark-mode .vertical-footer-text a {
    color: #999;
}

body.dark-mode .vertical-footer-text a:hover {
    color: #ccc;
}

body.dark-mode .vertical-footer-text > div > span {
    color: #999;
}

/* 竖向布局标题和副标题 */
body.dark-mode .section-subtitle {
    color: #e0e0e0;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

/* Hero版块（左文右图） */
body.dark-mode .hero-subtitle-small {
    color: #e0e0e0;
}

body.dark-mode .hero-title-large {
    color: #e0e0e0;
}

body.dark-mode .hero-features-list li {
    color: #e0e0e0;
}

/* Hero版块中间竖线 */
body.dark-mode .hero-divider-line {
    background: #444;
}

/* Hero版块按钮 - 黑色模式下使用白色按钮 */
body.dark-mode .hero-cta-button {
    background: #fff;
    color: #000;
}

body.dark-mode .hero-cta-button:hover {
    background: #e0e0e0;
}

/* 卡片版块 */
body.dark-mode .style-card {
    background: #2a2a2a;
}

body.dark-mode .style-card:hover {
    background: #333;
}

body.dark-mode .style-card-title {
    color: #e0e0e0;
}

/* 特性版块 */
body.dark-mode .features-title {
    color: #e0e0e0;
}

body.dark-mode .features-right {
    border-left-color: #444;
}

body.dark-mode .features-grid::before {
    background: #444;
}

body.dark-mode .feature-title {
    color: #e0e0e0;
}

body.dark-mode .feature-description {
    color: #999;
}

/* 原则版块 */
body.dark-mode .principles-title {
    color: #e0e0e0;
}

body.dark-mode .principle-feature-title {
    color: #e0e0e0;
}

body.dark-mode .principle-feature-description {
    color: #999;
}

/* 统计数据版块 */
body.dark-mode .stat-number {
    color: #e0e0e0;
}

body.dark-mode .stat-label {
    color: #999;
}

body.dark-mode .stats-row {
    border-bottom-color: #333;
}

/* 资源版块 */
body.dark-mode .resource-card {
    background: #2a2a2a;
}

body.dark-mode .resource-card:hover {
    background: #333;
}

body.dark-mode .resource-card-title {
    color: #e0e0e0;
}

body.dark-mode .resource-card-description {
    color: #999;
}

/* 特性版块图标 - 黑色模式下使用浅色描边 */
body.dark-mode .feature-icon svg {
    stroke: #e0e0e0;
}
