/* Extracted from layout.html for browser caching across navigations */
        /* 页眉样式优化 - 现代化设计 */
        .layout-header {
            padding: 0;
            background-color: var(--theme-nav-bg);
            border-bottom: 1px solid var(--theme-nav-border);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            /* Apple 风格磨砂玻璃导航 */
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
        }

        .main {
            padding-top: 92px;
        }

        .layout-header.layout-scrolled {
            background-color: var(--theme-nav-bg);
            border-bottom: 1px solid var(--theme-border-secondary);
            box-shadow: var(--theme-shadow-lg);
        }

        .layout-header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            max-width: 1200px;
            margin: 0 auto;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            height: 70px;
        }

        /* Logo 现代化设计 */
        .layout-logo {
            display: flex;
            align-items: center;
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }

        .layout-logo:hover {
            transform: translateY(-1px);
        }

        .layout-logo a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--theme-text-primary);
            transition: opacity 0.2s ease;
        }

        .layout-logo a:hover {
            opacity: 0.8;
        }

        .layout-logo-image {
            width: 36px;
            height: 36px;
            margin-right: 0.75rem;
            transition: transform 0.3s ease;
        }

        /* 只在非移动端设备上启用hover效果 */
        @media (hover: hover) and (pointer: fine) {
            .layout-logo:hover .layout-logo-image {
                transform: rotate(5deg) scale(1.05);
            }
        }

        .layout-logo-text {
            font-size: 1.375rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.025em;
        }

        /* 导航栏现代化设计 */
        .layout-nav {
            display: flex;
            align-items: center;
            flex: 1;
            justify-content: center;
        }

        .layout-nav-list {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 0.5rem;
        }

        .layout-nav-item {
            position: relative;
        }

        .layout-nav-link {
            color: var(--theme-nav-link);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            white-space: nowrap;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* 性能优化：只在支持hover的设备上应用复杂效果 */
        @media (hover: hover) and (pointer: fine) {
            .layout-nav-link::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(135deg, var(--theme-brand-primary), var(--theme-brand-secondary));
                opacity: 0;
                transition: opacity 0.2s ease;
                border-radius: 8px;
                will-change: opacity;
            }

            .layout-nav-link:hover::before {
                opacity: 0.1;
            }

            .layout-nav-link:hover {
                color: var(--theme-nav-link-hover);
                background-color: var(--theme-hover-bg);
                transform: translateY(-1px);
            }
        }

        /* 移动端简化版本 */
        @media (hover: none) or (pointer: coarse) {
            .layout-nav-link:active {
                color: var(--theme-nav-link-active);
                background-color: var(--theme-active-bg);
            }
        }

        .layout-nav-item.active .layout-nav-link {
            color: var(--theme-text-inverse);
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            box-shadow: 0 4px 15px var(--theme-focus-ring);
        }

        .layout-nav-item.active .layout-nav-link::before {
            opacity: 0;
        }

        .layout-nav-item.active::after {
            display: none;
        }

        /* 右侧区域布局优化 */
        .layout-header-right {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            flex-shrink: 0;
        }

        /* 语言切换器下拉菜单设计 */
        .layout-language-switcher {
            position: relative;
            display: flex;
            align-items: center;
        }

        .layout-language-trigger {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--theme-bg-elevated);
            border: 1px solid var(--theme-border-primary);
            border-radius: 10px;
            padding: 0.5rem 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--theme-text-secondary);
        }

        /* 只在桌面端应用hover效果 */
        @media (hover: hover) and (pointer: fine) {
            .layout-language-trigger:hover {
                background: var(--theme-bg-primary);
                border-color: var(--theme-border-focus);
                box-shadow: var(--theme-shadow-md);
                color: var(--theme-brand-primary);
            }
        }

        .layout-language-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            transition: color 0.2s ease;
        }

        .layout-language-dropdown {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            background: var(--theme-modal-bg);
            border: 1px solid var(--theme-modal-border);
            border-radius: 12px;
            box-shadow: var(--theme-shadow-xl);
            backdrop-filter: blur(20px);
            min-width: 140px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1001;
        }

        .layout-language-switcher.active .layout-language-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .layout-language-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            cursor: pointer;
            transition: all 0.15s ease;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 0.875rem;
            color: var(--theme-text-secondary);
        }

        .layout-language-option:hover {
            background-color: var(--theme-hover-bg);
            color: var(--theme-brand-primary);
        }

        .layout-language-option.active {
            background-color: var(--theme-selected-bg);
            color: var(--theme-brand-primary);
            font-weight: 600;
        }

        .layout-language-flag {
            width: 18px;
            height: 18px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        /* 用户认证区域优化 */
        .layout-user-auth-area {
            display: flex;
            align-items: center;
        }

        .layout-auth-button {
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            color: var(--theme-text-inverse);
            border: none;
            padding: 0.6rem 1.5rem;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px var(--theme-focus-ring);
            position: relative;
            overflow: hidden;
        }

        .layout-auth-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--theme-text-inverse), transparent);
            opacity: 0.2;
            transition: left 0.5s ease;
        }

        .layout-auth-button:hover::before {
            left: 100%;
        }

        .layout-auth-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px var(--theme-focus-ring);
        }

        .layout-auth-button:active {
            transform: translateY(-1px);
        }

        /* 用户菜单现代化 */
        .layout-user-menu-wrapper {
            position: relative;
        }

        .layout-user-menu-trigger {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 1rem;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--theme-bg-elevated);
            border: 1px solid var(--theme-border-primary);
        }

        .layout-user-menu-trigger:hover {
            background: var(--theme-bg-primary);
            border-color: var(--theme-border-focus);
            box-shadow: var(--theme-shadow-md);
        }

        .layout-user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px var(--theme-focus-ring);
            flex-shrink: 0;
            min-width: 32px;
            min-height: 32px;
        }

        .layout-user-initial {
            color: var(--theme-text-inverse);
            font-weight: 600;
            font-size: 0.875rem;
        }

        .layout-user-name {
            color: var(--theme-text-primary);
            font-weight: 500;
            font-size: 0.9rem;
        }

        /* 移动端菜单按钮现代化 */
        .layout-mobile-menu-toggle {
            display: none;
            background: var(--theme-bg-elevated);
            border: 1px solid var(--theme-border-primary);
            border-radius: 10px;
            cursor: pointer;
            padding: 0.75rem;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            position: fixed;
            right: 10px;
        }

        .layout-mobile-menu-toggle:hover {
            background: var(--theme-bg-primary);
            border-color: var(--theme-border-focus);
            box-shadow: var(--theme-shadow-md);
        }

        .layout-mobile-menu-toggle svg {
            width: 20px;
            height: 20px;
            color: var(--theme-text-secondary);
            transition: color 0.2s ease;
        }

        .layout-mobile-menu-toggle:hover svg {
            color: var(--theme-brand-primary);
        }

        /* 移动端导航优化 */
        .layout-mobile-nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--theme-bg-primary);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1001;
            padding: 2rem;
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: none;
            overflow-y: auto;
        }

        .layout-mobile-nav.active {
            transform: translateX(0);
            display: block;
        }

        .layout-mobile-nav-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: var(--theme-bg-elevated);
            border: 1px solid var(--theme-border-primary);
            border-radius: 10px;
            cursor: pointer;
            padding: 0.75rem;
            transition: all 0.2s ease;
        }

        .layout-mobile-nav-close:hover {
            background: var(--theme-bg-primary);
            border-color: var(--theme-brand-error);
        }

        .layout-mobile-nav-close svg {
            width: 20px;
            height: 20px;
            color: var(--theme-text-secondary);
        }

        .layout-mobile-nav .layout-logo {
            margin-bottom: 3rem;
            justify-content: center;
        }

        .layout-mobile-nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .layout-mobile-nav-item {
            opacity: 0;
            animation: slideInUp 0.5s ease forwards;
        }

        .layout-mobile-nav-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .layout-mobile-nav-item:nth-child(2) {
            animation-delay: 0.2s;
        }

        .layout-mobile-nav-item:nth-child(3) {
            animation-delay: 0.3s;
        }

        .layout-mobile-nav-item:nth-child(4) {
            animation-delay: 0.4s;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

        .layout-mobile-nav-link {
            color: var(--theme-text-primary);
            text-decoration: none;
            font-size: 1.375rem;
            font-weight: 600;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            display: block;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .layout-mobile-nav-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--theme-brand-primary), var(--theme-brand-secondary));
            opacity: 0;
            transition: opacity 0.2s ease;
            border-radius: 12px;
        }

        .layout-mobile-nav-link:hover::before {
            opacity: 0.1;
        }

        .layout-mobile-nav-link:hover {
            color: var(--theme-brand-primary);
            background-color: var(--theme-hover-bg);
            transform: translateX(8px);
        }

        .layout-mobile-nav-item.active .layout-mobile-nav-link {
            color: var(--theme-text-inverse);
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            box-shadow: 0 4px 15px var(--theme-focus-ring);
        }

        /* 移动端语言切换 */
        .layout-mobile-nav .layout-language-switcher {
            margin-top: 2rem;
            position: static;
        }

        .layout-mobile-nav .layout-language-trigger {
            justify-content: center;
            background: rgba(248, 250, 252, 1);
            width: 100%;
            padding: 1rem;
            font-size: 1rem;
        }

        .layout-mobile-nav .layout-language-dropdown {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            margin-top: 1rem;
            box-shadow: none;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .layout-mobile-nav .layout-language-option {
            padding: 1rem;
            font-size: 1rem;
        }

        /* 移动端用户认证区域样式 */
        .mobile-auth-area {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }

        .mobile-user-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            text-align: center;
        }

        .mobile-user-info .layout-user-avatar {
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 60px;
            min-height: 60px;
            border-radius: 50%;
            overflow: hidden;
        }

        .mobile-user-info .layout-user-name {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--gray-800);
        }

        .mobile-profile-btn {
            background: rgba(248, 250, 252, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 10px;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            font-weight: 500;
            color: var(--gray-700);
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
        }

        .mobile-profile-btn:hover {
            background: rgba(248, 250, 252, 1);
            border-color: rgba(0, 123, 255, 0.2);
            color: var(--primary-color);
        }

        .mobile-auth-button {
            background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-size: 1.125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
            width: 100%;
            margin-top: 1rem;
        }

        .mobile-auth-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
        }

        /* 响应式设计优化 */
        @media (max-width: 1024px) {
            .layout-header-content {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .layout-nav-list {
                gap: 0.25rem;
            }

            .layout-nav-link {
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }

            .layout-header-right {
                gap: 1rem;
            }
        }

        @media (min-width: 901px) and (max-width: 1100px) {
            .layout-logo-text { font-size: 1.1rem; }
            .layout-logo-image { width: 30px; height: 30px; margin-right: 0.5rem; }
            .layout-nav-link { padding: 0.55rem 0.55rem; font-size: 0.86rem; }
            .layout-header-right { gap: 0.65rem; }
        }

        @media (max-width: 900px) {
            .main {
                padding-top: 82px;
            }

            .layout-nav {
                display: none;
            }

            .layout-mobile-menu-toggle {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                background: var(--theme-card-bg);
                border: 1px solid var(--theme-card-border);
                border-radius: 12px;
                cursor: pointer;
                padding: 0.75rem 1rem;
                transition: all var(--theme-transition-normal);
                backdrop-filter: blur(10px);
                color: var(--theme-text-primary);
                font-weight: 500;
                font-size: 0.875rem;
                flex-shrink: 0;
                min-height: 44px;
                /* 与主题按钮高度一致 */
                outline: none;
                -webkit-tap-highlight-color: transparent;
            }

            /* 深色主题下的移动端菜单按钮 */
            [data-theme="dark"] .layout-mobile-menu-toggle {
                background: rgba(51, 65, 85, 0.8);
                border-color: rgba(71, 85, 105, 0.3);
                color: #f1f5f9;
            }

            .layout-mobile-menu-toggle:hover {
                background: var(--theme-hover-bg);
                border-color: var(--theme-brand-primary);
                transform: scale(1.05);
            }

            /* 深色主题下的菜单按钮悬浮效果 */
            [data-theme="dark"] .layout-mobile-menu-toggle:hover {
                background: rgba(51, 65, 85, 1);
                border-color: #60a5fa;
                color: #60a5fa;
            }

            .layout-mobile-menu-toggle:active {
                transform: scale(0.95);
            }

            .layout-mobile-menu-toggle svg {
                width: 18px;
                height: 18px;
                color: currentColor;
                transition: all var(--theme-transition-normal);
            }

            .layout-mobile-menu-toggle:hover svg {
                transform: scale(1.1);
            }

            .layout-header-content {
                padding: 0.75rem 1rem;
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                flex-wrap: nowrap;
                overflow: hidden;
            }

            .layout-logo {
                flex: 0 1 auto;
                max-width: calc(100% - 130px);
                min-width: 0;
                overflow: hidden;
            }

            .layout-logo a {
                min-width: 0;
                overflow: hidden;
            }

            .layout-logo-image {
                width: 28px;
                height: 28px;
                margin-right: 0.5rem;
                flex-shrink: 0;
            }

            .layout-logo-text {
                font-size: 1.1rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                min-width: 0;
            }

            /* 移动端完全隐藏导航右侧区域 */
            .layout-header-right {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                /* 增加按钮间距 */
                flex-shrink: 0;
                flex: 0 0 auto;
                min-width: 140px;
                /* 增加最小宽度以容纳间距 */
            }

            .layout-header-right .layout-language-switcher,
            .layout-header-right .layout-user-auth-area,
            .layout-header-right .layout-user-menu-wrapper {
                display: none !important;
            }

            /* 移动端主题切换按钮样式 */
            .mobile-header-theme-toggle {
                display: flex;
                align-items: center;
                flex-shrink: 0;
            }

            .mobile-header-theme-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 44px;
                height: 44px;
                background: var(--theme-card-bg);
                border: 1px solid var(--theme-card-border);
                border-radius: 12px;
                cursor: pointer;
                transition: all var(--theme-transition-normal);
                outline: none;
                -webkit-tap-highlight-color: transparent;
                backdrop-filter: blur(10px);
                position: relative;
            }

            /* 深色主题下的移动端主题按钮 */
            [data-theme="dark"] .mobile-header-theme-btn {
                background: rgba(51, 65, 85, 0.8);
                border-color: rgba(71, 85, 105, 0.3);
            }

            .mobile-header-theme-btn:hover {
                background: var(--theme-hover-bg);
                border-color: var(--theme-brand-primary);
                transform: scale(1.05);
            }

            /* 深色主题下的悬浮效果 */
            [data-theme="dark"] .mobile-header-theme-btn:hover {
                background: rgba(51, 65, 85, 1);
                border-color: #60a5fa;
            }

            .mobile-header-theme-btn:active {
                transform: scale(0.95);
            }

            .mobile-header-theme-btn .theme-icon {
                width: 18px;
                height: 18px;
                color: var(--theme-text-primary);
                transition: all var(--theme-transition-normal);
            }

            /* 深色主题下的图标颜色 */
            [data-theme="dark"] .mobile-header-theme-btn .theme-icon {
                color: #f1f5f9;
            }

            /* 主题图标显示控制 */
            [data-theme="light"] .mobile-header-theme-btn .theme-icon-sun {
                opacity: 1;
            }

            [data-theme="light"] .mobile-header-theme-btn .theme-icon-moon {
                opacity: 0;
                position: absolute;
            }

            [data-theme="dark"] .mobile-header-theme-btn .theme-icon-sun {
                opacity: 0;
                position: absolute;
            }

            [data-theme="dark"] .mobile-header-theme-btn .theme-icon-moon {
                opacity: 1;
            }

            /* 移动端菜单样式优化 */
            .layout-mobile-nav {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--theme-bg-secondary);
                z-index: 1001;
                padding: 2rem;
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                display: none;
                overflow-y: auto;
                border-right: 1px solid var(--theme-border-primary);
            }

            .layout-mobile-nav.active {
                transform: translateX(0);
                display: block;
            }

            .layout-mobile-nav-close {
                position: absolute;
                top: 1.5rem;
                right: 1.5rem;
                background: var(--theme-hover-bg);
                border: 2px solid var(--theme-border-focus);
                border-radius: 12px;
                cursor: pointer;
                padding: 0.75rem;
                transition: all 0.2s ease;
                color: var(--theme-brand-primary);
            }

            .layout-mobile-nav-close:hover {
                background: var(--theme-selected-bg);
                border-color: var(--theme-brand-primary);
                transform: scale(1.05);
            }

            .layout-mobile-nav-close svg {
                width: 20px;
                height: 20px;
                color: var(--theme-brand-primary);
            }

            .layout-mobile-nav .layout-logo {
                margin-bottom: 3rem;
                justify-content: flex-start;
                padding-bottom: 1.5rem;
                border-bottom: 2px solid var(--theme-border-muted);
            }

            .layout-mobile-nav-list {
                list-style: none;
                padding: 0;
                margin: 1.5rem 0;
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
            }

            .layout-mobile-nav-item {
                opacity: 0;
                animation: slideInUp 0.5s ease forwards;
            }

            .layout-mobile-nav-item:nth-child(1) {
                animation-delay: 0.1s;
            }

            .layout-mobile-nav-item:nth-child(2) {
                animation-delay: 0.2s;
            }

            .layout-mobile-nav-item:nth-child(3) {
                animation-delay: 0.3s;
            }

            .layout-mobile-nav-item:nth-child(4) {
                animation-delay: 0.4s;
            }

            .layout-mobile-nav-link {
                color: var(--theme-text-primary);
                text-decoration: none;
                font-size: 1.25rem;
                font-weight: 600;
                padding: 1rem 1.5rem;
                border-radius: 12px;
                display: block;
                transition: all 0.2s ease;
                position: relative;
                overflow: hidden;
                border: 2px solid transparent;
            }

            .layout-mobile-nav-link::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(135deg, var(--theme-brand-primary), var(--theme-brand-secondary));
                opacity: 0;
                transition: opacity 0.2s ease;
                border-radius: 10px;
            }

            .layout-mobile-nav-link:hover::before {
                opacity: 0.1;
            }

            .layout-mobile-nav-link:hover {
                color: var(--theme-brand-primary);
                background-color: var(--theme-hover-bg);
                border-color: var(--theme-border-focus);
                transform: translateX(8px);
            }

            .layout-mobile-nav-item.active .layout-mobile-nav-link {
                color: var(--theme-text-inverse);
                background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
                border-color: var(--theme-brand-primary);
                box-shadow: 0 4px 15px var(--theme-focus-ring);
            }

            /* 移动端语言切换样式 - 简化设计 */
            /* 移动端主题和语言切换样式已移至 mobile-nav-standalone.css */
            .mobile-theme-section,
            .mobile-language-section {
                /* 样式已在独立CSS文件中定义，确保主题适配 */
                transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
                position: relative;
                overflow: hidden;
            }

            .mobile-lang-btn:hover {
                background: var(--theme-hover-bg);
                color: var(--theme-brand-primary);
                transform: translateY(-1px);
            }

            .mobile-lang-btn.active {
                background: linear-gradient(135deg, var(--theme-brand-primary), var(--theme-brand-secondary));
                color: var(--theme-text-inverse);
                font-weight: 600;
                box-shadow: 0 2px 8px var(--theme-focus-ring);
                transform: translateY(-1px);
                position: relative;
            }

            .mobile-lang-btn.active::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, var(--theme-text-inverse), transparent);
                opacity: 0.2;
                transition: left 0.5s ease;
            }

            .mobile-lang-btn.active:hover::before {
                left: 100%;
            }

            .mobile-lang-btn .lang-flag {
                font-size: 1.125rem;
                filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
            }

            /* 移动端用户认证区域样式 */
            .mobile-auth-area {
                margin-top: 1.5rem;
                padding: 1.5rem;
                border-top: 1px solid var(--theme-border-muted);
                background: var(--theme-bg-tertiary);
                border-radius: 12px;
            }

            .mobile-user-info {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 1rem;
                text-align: center;
                width: 100%;
                padding: 0 1rem;
            }

            .mobile-user-info .layout-user-avatar {
                width: 60px;
                font-size: 1.5rem;
                border: 3px solid var(--theme-border-focus);
                box-shadow: 0 4px 15px var(--theme-focus-ring);
            }

            .mobile-user-info .layout-user-name {
                font-size: 1.25rem;
                font-weight: 600;
                color: var(--theme-text-primary);
            }

            .mobile-profile-btn {
                background: var(--theme-bg-primary);
                border: 2px solid var(--theme-border-focus);
                border-radius: 10px;
                padding: 0.75rem 1.5rem;
                font-size: 1rem;
                font-weight: 600;
                color: var(--theme-brand-primary);
                cursor: pointer;
                transition: all 0.2s ease;
                width: 100%;
                box-shadow: var(--theme-shadow-sm);
            }

            .mobile-profile-btn:hover {
                background: var(--theme-hover-bg);
                border-color: var(--theme-brand-primary);
                transform: translateY(-2px);
                box-shadow: var(--theme-shadow-md);
            }

            .mobile-auth-button {
                background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
                color: var(--theme-text-inverse);
                border: none;
                padding: 1rem 2rem;
                border-radius: 12px;
                font-size: 1.125rem;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
                box-shadow: 0 4px 15px var(--theme-focus-ring);
                width: 100%;
                margin-top: 1rem;
                position: relative;
                overflow: hidden;
            }

            .mobile-auth-button::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, var(--theme-text-inverse), transparent);
                opacity: 0.2;
                transition: left 0.5s ease;
            }

            .mobile-auth-button:hover::before {
                left: 100%;
            }

            .mobile-auth-button:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 25px var(--theme-focus-ring);
            }
        }

        @media (max-width: 480px) {
            .main {
                padding-top: 76px;
            }

            .layout-header-content {
                padding: 0.5rem 0.75rem;
            }

            .layout-header-right {
                gap: 0.5rem;
                /* 小屏幕下稍微减少间距 */
                min-width: 120px;
            }

            .layout-logo-text {
                font-size: 1.125rem;
            }

            .mobile-header-theme-btn {
                width: 40px;
                height: 40px;
            }

            .mobile-header-theme-btn .theme-icon {
                width: 16px;
                height: 16px;
            }

            .layout-mobile-menu-toggle {
                padding: 0.625rem 0.875rem;
                font-size: 0.8rem;
                min-height: 40px;
            }

            .layout-mobile-menu-toggle svg {
                width: 16px;
                height: 16px;
            }

            .layout-mobile-nav {
                padding: 1.5rem;
            }

            .layout-mobile-nav-close {
                top: 0.5rem;
                right: 1rem;
            }
        }

        /* 超小屏幕优化 */
        @media (max-width: 360px) {
            .layout-header-right {
                gap: 0.375rem;
                /* 进一步减少间距 */
                min-width: 100px;
            }

            .mobile-header-theme-btn {
                width: 36px;
                height: 36px;
            }

            .mobile-header-theme-btn .theme-icon {
                width: 14px;
                height: 14px;
            }

            .layout-mobile-menu-toggle {
                padding: 0.5rem 0.75rem;
                font-size: 0.75rem;
                min-height: 36px;
            }

            .layout-mobile-menu-toggle svg {
                width: 14px;
                height: 14px;
            }
        }

        /* 高对比度和无障碍支持 */
        @media (prefers-contrast: high) {
            .layout-header {
                background-color: var(--theme-bg-primary);
                border-bottom: 2px solid var(--theme-text-primary);
            }

            .layout-nav-link {
                border: 1px solid transparent;
            }

            .layout-nav-link:hover,
            .layout-nav-link:focus {
                border-color: var(--theme-brand-primary);
            }
        }

        /* 减少动画偏好支持 */
        @media (prefers-reduced-motion: reduce) {

            .layout-header,
            .layout-nav-link,
            .layout-auth-button,
            .layout-mobile-nav,
            .layout-mobile-nav-item {
                transition: none;
                animation: none;
            }

            .layout-logo:hover .layout-logo-image {
                transform: none;
            }
        }

        /* 暗色主题支持预留 - 现在通过theme-system.css处理 */
        @media (prefers-color-scheme: dark) {
            /* Theme variables will handle dark mode automatically */
        }

        /* 触摸设备优化 */
        .touch-device .layout-nav-link,
        .touch-device .lang-btn,
        .touch-device .layout-auth-button,
        .touch-device .layout-mobile-menu-toggle,
        .touch-device .layout-user-menu-trigger {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }

        .touch-device .layout-nav-link {
            padding: 0.875rem 1.25rem;
        }

        .touch-device .layout-mobile-menu-toggle {
            padding: 1rem;
        }

        .touch-device .lang-btn {
            padding: 0.625rem 1rem;
        }

        /* 修复侧边导航显示问题 */
        body>div.layout-logo,
        body>ul.layout-nav-list,
        body>nav:not(.layout-nav),
        body>a[href="/"]:not(.layout-logo a) {
            display: none !important;
        }

        /* 确保移动导航菜单默认隐藏 - 高优先级规则 */
        body>.layout-mobile-nav,
        html body .layout-mobile-nav,
        .layout-mobile-nav:not(.active),
        div.layout-mobile-nav,
        body div.layout-mobile-nav,
        [data-role="layout-mobile-nav"] {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            position: fixed !important;
            transform: translateX(-100%) !important;
        }

        /* 只有激活时才显示移动导航 */
        .layout-mobile-nav.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: translateX(0) !important;
        }

        /* 页脚样式 - 基于设计系统优化 */
        .layout-footer {
            background: var(--theme-bg-secondary);
            border-top: 1px solid var(--theme-border-primary);
            position: relative;
            overflow: hidden;
        }

        .layout-footer .container {
            padding-top: var(--spacing-16);
            padding-bottom: var(--spacing-8);
        }

        .layout-footer-content {
            display: grid;
            grid-template-columns: 1.5fr repeat(3, 1fr);
            gap: var(--spacing-8);
            margin-bottom: var(--spacing-12);
        }

        /* 品牌区域 */
        .layout-footer-logo {
            display: flex;
            flex-direction: column;

        }

        .layout-footer-logo-wrapper {
            display: flex;
            align-items: center;
            margin-bottom: var(--spacing-4);
            transition: all var(--transition-base) var(--ease-out);
        }

        .layout-footer-logo-wrapper:hover {
            transform: scale(1.02);
        }

        .layout-footer-logo-image {
            width: 40px;
            height: 40px;
            margin-right: var(--spacing-3);
            filter: drop-shadow(var(--shadow-sm));
        }

        .layout-footer-logo-text {
            font-size: var(--text-xl);
            font-weight: var(--font-bold);
            color: var(--theme-text-primary);
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .layout-footer-description {
            font-size: var(--text-base);
            color: var(--theme-text-muted);
            margin-bottom: var(--spacing-6);
            max-width: 320px;
            line-height: var(--leading-relaxed);
        }

        .layout-footer-language {
            display: flex;
            gap: var(--spacing-2);
            margin-top: auto;
        }

        .layout-footer-language-btn {
            background: var(--theme-bg-primary);
            border: 1px solid var(--theme-border-secondary);
            color: var(--theme-text-secondary);
            font-size: var(--text-sm);
            font-weight: var(--font-medium);
            cursor: pointer;
            padding: var(--spacing-2) var(--spacing-3);
            border-radius: var(--radius-md);
            transition: all var(--transition-base) var(--ease-out);
            box-shadow: var(--theme-shadow-sm);
        }

        .layout-footer-language-btn:hover {
            border-color: var(--theme-brand-primary);
            color: var(--theme-brand-primary);
            box-shadow: var(--theme-shadow-md);
            transform: translateY(-1px);
        }

        /* 栏目样式 */
        .layout-footer-column {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .layout-footer-column-title {
            font-size: var(--text-lg);
            font-weight: var(--font-semibold);
            color: var(--theme-text-primary);
            margin-bottom: var(--spacing-5);
            position: relative;
            padding-bottom: var(--spacing-2);
        }



        .layout-footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-3);
            text-align: center;
            align-items: center;
            justify-content: center;
        }

        .layout-footer-link {
            transition: all var(--transition-base) var(--ease-out);
        }

        .layout-footer-link:hover {
            transform: translateX(4px);
        }

        .layout-footer-link a {
            color: var(--theme-text-muted);
            text-decoration: none;
            font-size: var(--text-base);
            font-weight: var(--font-normal);
            transition: all var(--transition-base) var(--ease-out);
            display: flex;
            align-items: center;
            gap: var(--spacing-2);
            padding: var(--spacing-1) 0;
            border-radius: var(--radius-sm);
        }

        .layout-footer-link a:hover {
            color: var(--theme-brand-primary);
        }

        .layout-footer-link a svg {
            width: 14px;
            height: 14px;
            opacity: 0.7;
            transition: all var(--transition-base) var(--ease-out);
        }

        .layout-footer-link a:hover svg {
            opacity: 1;
            transform: scale(1.1);
        }

        /* 反馈按钮特殊样式 */
        .apple-feedback-button {
            background: linear-gradient(135deg, var(--theme-brand-primary) 0%, var(--theme-brand-secondary) 100%) !important;
            color: var(--theme-text-inverse) !important;
            border: none !important;
            border-radius: var(--radius-lg) !important;
            font-weight: var(--font-semibold) !important;
            box-shadow: 0 4px 15px var(--theme-focus-ring) !important;
            transition: all var(--transition-base) var(--ease-out) !important;
            position: relative !important;
            overflow: hidden !important;
        }

        .apple-feedback-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--theme-text-inverse), transparent);
            opacity: 0.2;
            transition: left var(--transition-slower) ease;
        }

        .apple-feedback-button:hover::before {
            left: 100%;
        }

        .apple-feedback-button:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 25px var(--theme-focus-ring) !important;
        }

        /* 安全认证 */
        .security-badges {
            margin-top: var(--spacing-6);
        }

        .security-badge {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-2);
            font-size: var(--text-sm);
            font-weight: var(--font-medium);
            color: var(--theme-text-muted);
            background: var(--theme-bg-primary);
            padding: var(--spacing-2) var(--spacing-3);
            border-radius: var(--radius-md);
            border: 1px solid var(--theme-border-secondary);
            box-shadow: var(--theme-shadow-sm);
        }

        .security-badge::before {
            content: '🔒';
            font-size: var(--text-sm);
        }

        /* 页脚底部 */
        .layout-footer-bottom {
            margin-top: var(--spacing-12);
            padding-top: var(--spacing-6);
            border-top: 1px solid var(--theme-border-primary);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-left: var(--spacing-6);
            padding-right: var(--spacing-6);
        }

        .layout-copyright-container {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-1);
        }

        .layout-copyright,
        .layout-copyright-info {
            font-size: var(--text-sm);
            color: var(--theme-text-muted);
            margin: 0;
            line-height: var(--leading-normal);
        }

        .layout-copyright-info a {
            color: var(--theme-text-muted);
            text-decoration: none;
            transition: color var(--transition-base) var(--ease-out);
        }

        .layout-copyright-info a:hover {
            color: var(--theme-brand-primary);
        }

        /* 社交媒体图标 */
        /* 页脚统计信息 */
        .layout-footer-stats {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 var(--spacing-4);
        }

        .footer-stats-container {
            display: flex;
            align-items: center;
            gap: var(--spacing-3);
            padding: var(--spacing-2) var(--spacing-4);
            background: var(--theme-surface-secondary);
            border-radius: var(--radius-lg);
            border: 1px solid var(--theme-border-secondary);
        }

        .footer-stats-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--spacing-1);
        }

        .footer-stats-number {
            font-size: var(--text-lg);
            font-weight: 600;
            color: var(--primary-color);
            line-height: 1;
        }

        .footer-stats-label {
            font-size: var(--text-xs);
            color: var(--theme-text-muted);
            line-height: 1;
            white-space: nowrap;
        }

        .footer-stats-divider {
            color: var(--theme-border-primary);
            font-size: var(--text-sm);
            opacity: 0.6;
        }

        .layout-footer-social {
            display: flex;
            gap: var(--spacing-3);
        }

        .layout-social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: var(--radius-full);
            background: var(--theme-bg-primary);
            color: var(--theme-text-muted);
            text-decoration: none;
            transition: all var(--transition-base) var(--ease-out);
            box-shadow: var(--theme-shadow-sm);
            border: 1px solid var(--theme-border-primary);
        }

        .layout-social-icon:hover {
            background: var(--theme-brand-primary);
            color: var(--theme-text-inverse);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px var(--theme-focus-ring);
        }

        .layout-social-icon svg {
            width: 18px;
            height: 18px;
        }

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .layout-footer-content {
                grid-template-columns: 1fr 1fr;
                gap: var(--spacing-6) var(--spacing-4);
            }

            .layout-footer-logo {
                grid-column: 1 / -1;
                margin-bottom: var(--spacing-4);
            }

            .layout-footer-bottom {
                flex-direction: column;
                gap: var(--spacing-5);
                text-align: center;
            }

            .layout-copyright-container,
            .layout-footer-stats,
            .layout-footer-social {
                margin: 0;
                align-items: center;
                justify-content: center;
            }

            .footer-stats-container {
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        @media (max-width: 640px) {
            .layout-footer .container {
                padding-top: var(--spacing-12);
                padding-bottom: var(--spacing-6);
            }

            .layout-footer-content {
                grid-template-columns: 1fr;
                gap: var(--spacing-6);
                text-align: center;
            }

            .layout-footer-logo {
                grid-column: 1;
                margin-bottom: var(--spacing-4);
                text-align: center;
                align-items: center;
                justify-content: center;
            }

            .layout-footer-logo-wrapper {
                justify-content: center;
            }

            .layout-footer-description {
                max-width: none;
                text-align: center;
                margin: 0 auto var(--spacing-4);
            }

            .layout-footer-language {
                justify-content: center;
                margin-top: var(--spacing-3);
            }

            /* 移动端页脚栏目居中 */
            .layout-footer-column {
                text-align: center;
                align-items: center;
            }

            .layout-footer-column-title {
                text-align: center;
            }

            .layout-footer-links {
                align-items: center;
                justify-content: center;
            }

            .layout-footer-bottom {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                gap: var(--spacing-4);
                padding-left: var(--spacing-4);
                padding-right: var(--spacing-4);
            }

            .layout-copyright-container {
                text-align: center;
                align-items: center;
            }

            .layout-footer-stats {
                margin: var(--spacing-3) 0;
                order: 0;
            }

            .footer-stats-container {
                padding: var(--spacing-2) var(--spacing-3);
                gap: var(--spacing-2);
            }

            .footer-stats-number {
                font-size: var(--text-base);
            }

            .layout-footer-social {
                order: -1;
                justify-content: center;
                margin-bottom: var(--spacing-2);
            }
        }

        @media (max-width: 480px) {
            .layout-footer .container {
                padding-left: var(--spacing-3);
                padding-right: var(--spacing-3);
            }

            .layout-footer-logo-wrapper {
                justify-content: center;
                text-align: center;
                margin-bottom: var(--spacing-3);
            }

            .layout-footer-description {
                text-align: center;
                font-size: var(--text-sm);
                line-height: var(--leading-relaxed);
                margin-bottom: var(--spacing-4);
            }

            .layout-footer-language {
                justify-content: center;
                gap: var(--spacing-1);
            }

            .layout-footer-language-btn {
                padding: var(--spacing-1) var(--spacing-2);
                font-size: var(--text-xs);
            }

            .layout-footer-column {
                margin-bottom: var(--spacing-4);
            }

            .layout-footer-column-title {
                text-align: center;
                font-size: var(--text-base);
                margin-bottom: var(--spacing-3);
            }

            .layout-footer-links {
                align-items: center;
                justify-content: center;
                gap: var(--spacing-2);
            }

            .layout-footer-link a {
                font-size: var(--text-sm);
                padding: var(--spacing-1) 0;
            }

            .layout-footer-bottom {
                gap: var(--spacing-3);
                padding: var(--spacing-3) var(--spacing-2);
            }

            .layout-copyright,
            .layout-copyright-info {
                font-size: var(--text-xs);
                text-align: center;
            }

            .layout-social-icon {
                width: 36px;
                height: 36px;
            }

            .layout-social-icon svg {
                width: 16px;
                height: 16px;
            }

            .layout-footer-social {
                gap: var(--spacing-2);
                margin-bottom: var(--spacing-3);
            }
        }

        /* 无障碍设计 */
        @media (prefers-reduced-motion: reduce) {

            .layout-footer-logo-wrapper:hover,
            .layout-footer-link:hover,
            .layout-footer-language-btn:hover,
            .apple-feedback-button:hover,
            .layout-social-icon:hover {
                transform: none;
            }

            .apple-feedback-button::before {
                display: none;
            }
        }

        /* 高对比度支持 */
        @media (prefers-contrast: high) {
            .layout-footer {
                background: white;
                border-top: 2px solid var(--gray-800);
            }

            .layout-footer-column-title::after {
                height: 3px;
            }

            .layout-social-icon {
                border: 2px solid var(--gray-400);
            }
        }

        /* 暗色主题支持 - 现在通过theme-system.css处理 */
        @media (prefers-color-scheme: dark) {
            /* Theme variables will handle dark mode automatically */
        }

        /* 通知提示框样式 */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            transform: translateX(150%);
            transition: transform 0.4s ease, opacity 0.4s ease;
            opacity: 0;
        }

        .notification.show {
            transform: translateX(0);
            opacity: 1;
        }

        .notification-content {
            display: flex;
            align-items: center;
            background-color: white;
            color: var(--text-color-dark);
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            font-size: 1rem;
            min-width: 280px;
            border-left: 4px solid var(--primary-color);
        }

        .notification-icon {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
        }

        .notification-icon.success {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
        }

        .notification-icon.error {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e53935' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
        }

        .notification-icon.info {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364B5F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
        }

        /* 禁用按钮样式 */
        .btn-primary1[disabled] {
            background: linear-gradient(135deg, #cccccc 0%, #dddddd 100%);
            opacity: 0.8;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 多语言支持 */
        [data-i18n] {
            transition: opacity 0.3s;
        }

        .lang-transition {
            opacity: 0.5;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
        }

        .section-header {
            margin-bottom: 2.5rem;
        }

        .section-header h2 {
            font-size: 2.75rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
            color: var(--theme-text-primary);
            letter-spacing: -0.5px;
        }

        .section-header p {
            font-size: 1.35rem;
            max-width: 700px;
            margin: 0 auto;
            color: var(--theme-text-secondary);
            line-height: 1.6;
        }

        /* 响应式调整 */
        @media (max-width: 992px) {
            .layout-footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 2rem 1rem;
            }

            .layout-footer-logo {
                grid-column: 1 / -1;
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .layout-footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: var(--spacing-5);
            }

            .layout-footer-logo {
                grid-column: 1;
                text-align: center;
                margin-bottom: var(--spacing-3);
            }

            .layout-footer-column {
                text-align: center;
            }
        }

        @media (max-width: 576px) {
            .layout-footer .container {
                padding: var(--spacing-8) var(--spacing-4) var(--spacing-4);
            }

            .layout-footer-content {
                grid-template-columns: 1fr;
                gap: var(--spacing-4);
                text-align: center;
            }

            .layout-footer-bottom {
                flex-direction: column;
                text-align: center;
                align-items: center;
                justify-content: center;
                gap: var(--spacing-3);
                margin-top: var(--spacing-6);
                padding-top: var(--spacing-4);
            }

            .layout-footer-stats {
                margin: var(--spacing-2) 0;
                order: 1;
            }

            .footer-stats-container {
                flex-wrap: wrap;
                justify-content: center;
                padding: var(--spacing-1) var(--spacing-2);
                gap: var(--spacing-1);
            }

            .footer-stats-item {
                min-width: 60px;
            }

            .footer-stats-number {
                font-size: var(--text-sm);
            }

            .footer-stats-label {
                font-size: var(--text-xs);
            }

            .footer-stats-divider {
                display: none;
            }

            .layout-footer-social {
                order: -1;
                justify-content: center;
                margin-bottom: var(--spacing-3);
            }

            /* 移动端反馈按钮优化 */
            .apple-feedback-button {
                width: 100%;
                max-width: 200px;
                margin: var(--spacing-3) auto;
            }
        }



        @keyframes spinner {
            to {
                transform: rotate(360deg);
            }
        }

        /* 通知提示框样式 */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            transform: translateX(150%);
            transition: transform 0.4s ease, opacity 0.4s ease;
            opacity: 0;
        }

        .notification.show {
            transform: translateX(0);
            opacity: 1;
        }

        .notification-content {
            display: flex;
            align-items: center;
            background-color: white;
            color: var(--text-color-dark);
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            font-size: 1rem;
            min-width: 280px;
            border-left: 4px solid var(--primary-color);
        }

        .notification-icon {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
        }

        .notification-icon.success {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
        }

        .notification-icon.error {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e53935' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
        }

        .notification-icon.info {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364B5F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
        }

        /* 禁用按钮样式 */
        .btn-primary1[disabled] {
            background: linear-gradient(135deg, #cccccc 0%, #dddddd 100%);
            opacity: 0.8;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 多语言支持 */
        [data-i18n] {
            transition: opacity 0.3s;
        }

        .lang-transition {
            opacity: 0.5;
        }


/* ===== 反馈模态框与 Cookie 横幅样式（从内联模板抽离） ===== */
.ds-feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5);
}

.ds-form-group {
    margin-bottom: var(--spacing-4);
}

.ds-form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
    line-height: var(--leading-normal);
}

.ds-form-input,
.ds-form-textarea,
.ds-feedback-input,
.ds-feedback-textarea {
    width: 100%;
    font-size: var(--text-base);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-300);
    transition: all var(--transition-base) var(--ease-out);
    background: white;
    font-family: inherit;
}

.ds-form-input:focus,
.ds-form-textarea:focus,
.ds-feedback-input:focus,
.ds-feedback-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.ds-form-textarea,
.ds-feedback-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--leading-normal);
}

.ds-file-upload {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4);
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base) var(--ease-out);
}

.ds-file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.02);
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-out);
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
}

.ds-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.ds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.ds-btn-secondary {
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--gray-300);
}

.ds-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.ds-file-select-btn {
    padding: 0.625rem 1rem;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.ds-file-select-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ds-file-name {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-file-name.has-file {
    color: var(--text-secondary);
    font-style: normal;
    font-weight: var(--font-medium);
}

.ds-feedback-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3);
    margin-top: var(--spacing-2);
}

.ds-feedback-submit {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    min-width: 160px;
    justify-content: center;
}

.ds-submit-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: var(--spacing-2) var(--spacing-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.ds-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spinner 1s ease-in-out infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.ds-submit-status.success {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.ds-submit-status.success .ds-loading-spinner {
    display: none;
}

.ds-submit-status.success::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ds-submit-status.error {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.ds-submit-status.error .ds-loading-spinner {
    display: none;
}

.ds-submit-status.error::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.ds-feedback-form .form-group {
    position: relative;
}

.ds-feedback-form .form-label {
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.ds-feedback-form .form-label::after {
    content: '*';
    color: var(--error);
    font-weight: var(--font-semibold);
}

.ds-feedback-form .form-label[for="image"]::after {
    display: none;
}

.ds-feedback-textarea-wrapper {
    position: relative;
}

.ds-char-counter {
    position: absolute;
    bottom: var(--spacing-2);
    right: var(--spacing-3);
    font-size: var(--text-xs);
    color: var(--text-light);
    background: white;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

.ds-char-counter.warning {
    color: var(--warning);
    border-color: var(--warning);
}

.ds-char-counter.error {
    color: var(--error);
    border-color: var(--error);
}

@media (max-width: 640px) {
    .ds-feedback-form {
        gap: var(--spacing-4);
    }
    .ds-feedback-input,
    .ds-feedback-textarea {
        font-size: 16px;
        padding: 1rem 0.875rem;
    }
    .ds-feedback-textarea {
        min-height: 100px;
    }
    .ds-file-upload {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--spacing-2);
    }
    .ds-file-select-btn {
        justify-content: center;
    }
    .ds-file-name {
        text-align: center;
    }
    .ds-feedback-submit {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .ds-form-row {
        grid-template-columns: 1fr;
    }
    .ds-file-upload {
        padding: var(--spacing-3);
    }
    .ds-feedback-actions {
        gap: var(--spacing-2);
    }
}

.ds-feedback-form .form-group {
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.ds-feedback-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.ds-feedback-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.ds-feedback-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.ds-feedback-form .form-group:nth-child(4) { animation-delay: 0.4s; }

.ds-feedback-actions {
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .ds-feedback-form .form-group,
    .ds-feedback-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.ds-file-upload.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: scale(1.02);
}

.ds-file-upload.drag-over .ds-file-select-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.ds-feedback-input.error,
.ds-feedback-textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ds-feedback-input.success,
.ds-feedback-textarea.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.ds-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ds-feedback-submit.loading {
    position: relative;
    color: transparent;
}

.ds-feedback-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 1s ease-in-out infinite;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-consent-icon {
    color: #007bff;
    flex-shrink: 0;
    margin-top: 4px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.cookie-consent-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #666;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #007bff;
    color: white;
}

.cookie-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.cookie-btn-secondary:hover {
    background: #007bff;
    color: white;
}

.cookie-btn-minimal {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookie-btn-minimal:hover {
    background: #e9ecef;
    color: #495057;
}

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-settings-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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

.cookie-settings-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    color: #666;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-settings-body {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-category:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category-info {
    flex: 1;
    margin-right: 16px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.cookie-category-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #666;
}

.cookie-category-details {
    font-size: 13px;
    color: #888;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
}

.cookie-toggle {
    flex-shrink: 0;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

input:checked + .toggle-label .toggle-slider {
    background: #007bff;
}

input:checked + .toggle-label .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-label .toggle-slider {
    background: #e9ecef;
    cursor: not-allowed;
}

input:disabled + .toggle-label {
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cookie-settings-note {
    font-size: 12px;
    color: #888;
    margin: 12px 0 0 0;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cookie-consent-actions {
        flex-direction: column;
        gap: 8px;
    }
    .cookie-btn {
        padding: 12px 16px;
    }
    .cookie-settings-content {
        margin: 10px;
        max-height: 90vh;
    }
    .cookie-category-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-category-info {
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-settings-content {
        animation: none;
    }
    .cookie-btn,
    .toggle-slider,
    .cookie-settings-close {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top: 2px solid #000;
    }
    .cookie-btn-primary {
        background: #000;
    }
    .cookie-btn-secondary {
        border-color: #000;
        color: #000;
    }
}
