        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
        }

        :root {
            --primary-blue: #2B6CB0;
            --accent-blue: #3182CE;
            --light-blue: #EBF4FF;
            --white: #FFFFFF;
            --gray-50: #FAFAF9;
            --gray-100: #F5F5F4;
            --gray-200: #E7E5E4;
            --gray-300: #D6D3D1;
            --gray-400: #A8A29E;
            --gray-600: #78716C;
            --gray-700: #57534E;
            --gray-800: #44403C;
            --blue: #4299E1;
            --green: #48BB78;
            --red: #E53E3E;
            --orange: #ED8936;
            --warm-accent: #C05621;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
        }

        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
            min-height: 100vh;
            padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ============ TOP BAR ============ */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            border-bottom: 1px solid var(--gray-200);
        }

        .top-bar-title {
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .page-slogan {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 56px;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0.5px;
            background: rgba(255, 255, 255, 0.96);
            border-bottom: 1px solid var(--gray-200);
        }

        /* ============ LOGIN PAGE ============ */
        .login-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #ffffff;
            z-index: 200;
            padding: 24px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .login-close-btn {
            position: absolute;
            top: 16px;
            left: 16px;
            width: 40px;
            height: 40px;
            background: rgba(21, 101, 192, 0.08);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--primary-blue);
            transition: background 0.3s;
            z-index: 10;
        }

        .login-close-btn:hover {
            background: rgba(21, 101, 192, 0.15);
        }

        .login-close-btn svg {
            width: 20px;
            height: 20px;
        }

        .login-page.active {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            padding-top: 60px;
        }

        .home-logo-img {
            width: 100px;
            margin: 0 auto 16px;
            border-radius: var(--radius-md);
            background: var(--white);
            padding: 10px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
        }

        .home-logo-fallback {
            display: none;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: var(--gray-700);
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 15px 16px;
            background: var(--white);
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-md);
            color: var(--gray-800);
            font-size: 16px;
            outline: none;
            transition: all 0.2s ease;
            appearance: none;
            -webkit-appearance: none;
        }

        .form-group select {
            padding-right: 40px;
            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='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
        }

        .form-group input::placeholder,
        .form-group select:invalid {
            color: var(--gray-400);
        }

        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.08);
        }

        .profile-modal .form-group input {
            background: #fff;
            color: #333;
            border: 1px solid #e0e0e0;
        }

        .profile-modal .form-group input::placeholder {
            color: #999;
        }

        .btn-primary {
            width: 100%;
            padding: 15px;
            background: var(--primary-blue);
            border: none;
            border-radius: var(--radius-md);
            color: var(--white);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .btn-primary:hover {
            background: #2457A0;
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary {
            width: 100%;
            padding: 15px;
            background: var(--white);
            border: 1px solid var(--gray-300);
            border-radius: var(--radius-md);
            color: var(--gray-700);
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 12px;
            transition: all 0.2s ease;
        }

        .btn-secondary:hover {
            background: var(--gray-50);
            border-color: var(--gray-400);
        }

        .login-links {
            display: flex;
            justify-content: space-between;
            margin-top: 24px;
        }

        .login-links a {
            color: var(--accent-blue);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
        }

        .login-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 24px;
            background: var(--gray-100);
            padding: 4px;
            border-radius: var(--radius-md);
        }

        .login-tab {
            flex: 1;
            padding: 10px;
            background: transparent;
            border: none;
            border-radius: var(--radius-sm);
            color: var(--gray-500);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .login-tab.active {
            background: var(--white);
            color: var(--primary-blue);
            font-weight: 600;
            box-shadow: var(--shadow-sm);
        }

        .error-message {
            background: #FEF2F2;
            color: #991B1B;
            padding: 14px 16px 14px 44px;
            border-radius: var(--radius-md);
            margin-bottom: 16px;
            font-size: 15px;
            font-weight: 500;
            display: none;
            border: 1px solid #FECACA;
            position: relative;
            line-height: 1.4;
        }

        .error-message::before {
            content: '!';
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            background: #DC2626;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
        }

        .error-message.show {
            display: block;
            animation: shakeError 0.4s ease;
        }

        @keyframes shakeError {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-6px); }
            40% { transform: translateX(6px); }
            60% { transform: translateX(-4px); }
            80% { transform: translateX(4px); }
        }

        /* ============ MAIN CONTENT ============ */
        .main-content {
            padding-top: 0;
            padding-bottom: 80px;
            display: none;
        }

        body.has-top-bar .main-content {
            padding-top: 56px;
        }

        .main-content.active {
            display: block;
        }

        /* ============ BOTTOM NAV ============ */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            min-height: 72px;
            height: auto;
            background: rgba(255, 255, 255, 0.98);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--gray-200);
            z-index: 1000;
            padding-bottom: env(safe-area-inset-bottom, 0);
            box-sizing: border-box;
            overflow: hidden;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            padding: 8px 18px;
            transition: all 0.2s ease;
            color: var(--gray-400);
            border-radius: var(--radius-md);
            max-height: 100%;
            box-sizing: border-box;
        }

        .nav-item:active {
            background: var(--gray-100);
        }

        .nav-item.active {
            color: var(--primary-blue);
        }

        .nav-icon {
            width: 26px;
            height: 26px;
            flex-shrink: 0;
        }

        .nav-label {
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            line-height: 1;
        }

        /* ============ PAGE SECTIONS ============ */
        .page-section {
            display: none;
            padding: 0;
            min-height: calc(100vh - 56px - 70px);
            overflow: hidden;
        }
        
        .page-section.active {
            display: block;
        }

        /* ============ COURSES PAGE ============ */
        #coursesPage {
            min-height: calc(100vh - 70px);
        }

        .series-tabs {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 500;
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.98);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--gray-200);
        }

        .series-tabs::-webkit-scrollbar {
            display: none;
        }

        .tab-item {
            flex-shrink: 0;
            padding: 8px 18px;
            background: var(--gray-100);
            border: 1px solid transparent;
            border-radius: 20px;
            font-size: 14px;
            color: var(--gray-600);
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .tab-item:hover {
            background: var(--gray-200);
        }

        .tab-item.active {
            background: var(--light-blue);
            border-color: var(--accent-blue);
            color: var(--primary-blue);
            font-weight: 600;
        }

        .course-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 16px;
            padding-top: 58px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .course-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--gray-200);
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: var(--shadow-sm);
        }

        .course-card:active {
            transform: scale(0.985);
        }

        .course-card:hover {
            box-shadow: var(--shadow-md);
        }

        .course-thumbnail {
            width: 100%;
            aspect-ratio: 16 / 10;
            max-height: 220px;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .course-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .course-thumbnail svg {
            width: 64px;
            height: 64px;
            fill: var(--accent-blue);
            opacity: 0.7;
        }

        .course-thumbnail .play-icon {
            position: absolute;
            width: 56px;
            height: 56px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-md);
            z-index: 2;
        }

        .course-thumbnail .play-icon svg {
            width: 24px;
            height: 24px;
            fill: var(--primary-blue);
            opacity: 1;
            margin-left: 3px;
        }

        .course-info {
            padding: 16px;
        }

        .course-info h3 {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--gray-800);
            display: inline-block;
        }

        .course-info .course-tags {
            display: inline-block;
            margin-left: 8px;
            font-size: 11px;
            color: var(--warm-accent);
            background: rgba(192, 86, 33, 0.08);
            padding: 3px 8px;
            border-radius: 10px;
            vertical-align: middle;
            font-weight: 500;
        }

        .course-info p {
            font-size: 14px;
            color: var(--gray-500);
            line-height: 1.6;
            margin-top: 6px;
        }

        .course-meta {
            display: none;
        }

        /* ============ COURSE DETAIL PAGE ============ */
        .course-detail-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gray-50);
            z-index: 2000;
            flex-direction: column;
            overflow: hidden;
        }

        .course-detail-page.active {
            display: flex;
        }

        .course-detail-header {
            height: 56px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 2001;
            flex-shrink: 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .course-detail-title {
            flex: 1;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            text-align: center;
            margin-right: 44px;
        }

        .course-detail-content {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            padding-bottom: 40px;
        }

        .course-detail-info {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .course-detail-info h2 {
            color: var(--gray-800);
            font-size: 20px;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .course-detail-info p {
            color: var(--gray-600);
            font-size: 15px;
            line-height: 1.7;
        }

        .video-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .video-item {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.25s ease;
            opacity: 1;
            box-sizing: border-box;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .video-item:hover:not(.playing) {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .video-item.playing {
            background: var(--light-blue);
            border-color: var(--accent-blue);
            cursor: default;
        }

        .video-item.fade-out {
            opacity: 0;
            transform: scale(0.98);
        }

        .video-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
            overflow: hidden;
        }

        .video-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .video-thumbnail::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
            z-index: 1;
        }

        .video-play-btn {
            width: 56px;
            height: 56px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-md);
        }

        .video-item:hover .video-play-btn {
            transform: scale(1.08);
        }

        .video-play-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--primary-blue);
            margin-left: 3px;
        }

        .video-container {
            width: 100%;
            max-width: 480px;
            aspect-ratio: 16 / 9;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
            margin: 0 auto;
            border-radius: var(--radius-md);
        }

        .course-video-player {
            width: 100%;
            height: 100%;
            object-fit: contain;
            position: absolute;
            top: 0;
            left: 0;
            display: none;
            z-index: 10;
        }

        /* 隐藏部分浏览器原生视频控件中的下载按钮，降低资源嗅探下载风险 */
        .course-video-player::-webkit-media-controls-download-button {
            display: none !important;
        }
        .course-video-player::-webkit-media-controls-enclosure {
            overflow: hidden;
        }

        .course-video-player.playing {
            display: block;
        }

        .video-thumbnail-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
        }

        .video-container:not(.playing) .video-thumbnail-img {
            display: block;
        }

        .video-container.playing .video-thumbnail-img {
            display: none;
        }

        .video-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
        }

        .video-container.playing .video-placeholder {
            display: none;
        }

        .video-play-btn-overlay {
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: var(--shadow-md);
        }

        .video-play-btn-overlay:hover {
            transform: translate(-50%, -50%) scale(1.08);
        }

        .video-play-btn-overlay svg {
            width: 26px;
            height: 26px;
            fill: var(--primary-blue);
            margin-left: 3px;
        }

        .video-container.playing .video-play-btn-overlay {
            display: none;
        }

        .video-loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 200;
        }

        .video-loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: var(--accent-blue);
            border-radius: 50%;
            animation: video-loading-spin 0.8s linear infinite;
        }

        @keyframes video-loading-spin {
            to { transform: rotate(360deg); }
        }

        .video-loading-text {
            color: #fff;
            font-size: 14px;
            margin-top: 10px;
        }

        .video-item-content {
            padding: 16px;
        }

        .video-item-title {
            color: var(--gray-800);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .video-item-desc {
            color: var(--gray-500);
            font-size: 14px;
            line-height: 1.6;
        }

        /* ============ VIDEO PLAYER PAGE ============ */
        .video-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gray-50);
            z-index: 2000;
            flex-direction: column;
            overflow-y: auto;
        }

        .video-page.active {
            display: flex;
        }

        .video-header {
            height: 56px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 2001;
            border-bottom: 1px solid var(--gray-200);
        }

        .back-btn {
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            color: var(--gray-700);
            font-size: 24px;
            cursor: pointer;
            padding: 10px;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .back-btn svg {
            width: 22px;
            height: 22px;
        }

        .back-btn:hover {
            background: var(--gray-200);
        }

        .back-btn:active {
            transform: scale(0.96);
        }

        .video-title {
            flex: 1;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            text-align: center;
            margin-right: 44px;
        }

        .video-player {
            width: 100%;
            height: 56.25vw;
            max-height: 50vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
        }

        .video-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 16px;
        }

        .video-placeholder svg {
            width: 64px;
            height: 64px;
            fill: var(--accent-blue);
            opacity: 0.6;
        }

        .video-placeholder-text {
            color: var(--gray-400);
            font-size: 14px;
        }

        .video-page-content {
            padding: 24px 20px;
            padding-bottom: 40px;
            background: var(--white);
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
            margin-top: -16px;
            position: relative;
            z-index: 2;
            border-top: 1px solid var(--gray-200);
            box-shadow: var(--shadow-lg);
        }

        .video-page-content h2 {
            color: var(--gray-800);
            font-size: 20px;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .video-page-content p {
            color: var(--gray-600);
            font-size: 15px;
            line-height: 1.7;
        }

        /* ============ HOME PAGE ============ */
        .home-hero {
            background: var(--white);
            color: var(--gray-800);
            padding: 40px 24px 36px;
            text-align: center;
            border-radius: 0 0 var(--radius-xl) var(--radius-xl);
            margin-bottom: 20px;
            border-bottom: 1px solid var(--gray-200);
            position: relative;
        }

        .home-hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--accent-blue);
            border-radius: 3px;
        }

        .home-logo {
            color: var(--gray-800);
            font-size: 30px;
            font-weight: 700;
            letter-spacing: 3px;
            margin-bottom: 14px;
        }

        .home-hero h1 {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--gray-800);
        }

        .home-hero p {
            font-size: 14px;
            color: var(--gray-500);
            font-weight: 400;
        }

        .home-story-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 24px;
            margin: 0 16px 20px;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .home-story-card.home-slogan-card {
            padding: 18px 24px;
            margin: 0 16px 16px;
            text-align: center;
        }

        .home-story-card h2 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 14px;
            color: var(--gray-800);
            padding-bottom: 12px;
            border-bottom: 1px solid var(--gray-100);
        }

        .home-story-card.home-slogan-card h2 {
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0.5px;
            color: var(--gray-800);
            text-align: center;
            margin: 0;
            padding: 0;
            border-bottom: none;
        }

        .home-slogan-logo {
            width: 120px;
            height: auto;
            max-height: 60px;
            object-fit: contain;
            margin: 0 auto 10px;
            display: block;
        }

        .home-slogan-text {
            font-size: 15px;
            font-weight: 500;
            color: var(--gray-700);
            line-height: 1.6;
            text-align: center;
        }

        .home-story-card p {
            font-size: 15px;
            line-height: 1.8;
            color: var(--gray-600);
        }

        .home-values {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 0 16px 24px;
        }

        .home-value-item {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 18px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            transition: all 0.2s ease;
        }

        .home-value-item:active {
            transform: scale(0.99);
            background: var(--gray-50);
        }

        .home-value-icon {
            font-size: 30px;
            flex-shrink: 0;
            line-height: 1;
        }

        .home-value-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 5px;
            color: var(--gray-800);
        }

        .home-value-item p {
            font-size: 14px;
            color: var(--gray-500);
            line-height: 1.6;
        }

        /* ============ INTERVIEWS PAGE ============ */
        .interview-header {
            padding: 20px 16px;
            background: var(--white);
            margin-bottom: 12px;
            border-bottom: 1px solid var(--gray-200);
        }

        .interview-header h2 {
            font-size: 20px;
            font-weight: 600;
            color: var(--gray-800);
        }

        .page-header {
            height: 56px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 600;
            flex-shrink: 0;
            border-bottom: 1px solid var(--gray-200);
        }

        body.has-top-bar .page-header {
            top: 56px;
        }

        .page-header-title {
            flex: 1;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            text-align: center;
            margin-right: 44px;
        }

        .interview-list {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .interview-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray-400);
            font-size: 14px;
        }

        .interview-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .interview-card:active {
            transform: scale(0.985);
        }

        .interview-card:hover {
            box-shadow: var(--shadow-md);
        }

        .interview-cover {
            width: 100%;
            aspect-ratio: 16 / 10;
            max-height: 220px;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            position: relative;
            overflow: hidden;
        }

        .interview-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .interview-type-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(255, 255, 255, 0.95);
            color: var(--warm-accent);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            box-shadow: var(--shadow-sm);
        }

        .interview-body {
            padding: 18px;
        }

        .interview-body h3 {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--gray-800);
            line-height: 1.4;
        }

        .interview-body p {
            font-size: 14px;
            color: var(--gray-500);
            line-height: 1.6;
            margin-bottom: 14px;
        }

        .interview-meta {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: var(--gray-400);
        }

        /* ============ HEALTH NEWS PAGE ============ */
        .health-news-list {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .health-news-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .health-news-card:active {
            transform: scale(0.985);
        }

        .health-news-card:hover {
            box-shadow: var(--shadow-md);
        }

        .health-news-cover {
            width: 100%;
            aspect-ratio: 16 / 10;
            max-height: 220px;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            position: relative;
            overflow: hidden;
        }

        .health-news-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .health-news-body {
            padding: 18px;
        }

        .health-news-body h3 {
            font-size: 17px;
            font-weight: 600;
            color: var(--gray-800);
            line-height: 1.4;
            margin-bottom: 8px;
        }

        .health-news-body p {
            font-size: 14px;
            color: var(--gray-500);
            line-height: 1.6;
            margin-bottom: 14px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* ============ INTERVIEW DETAIL PAGE ============ */
        .interview-detail-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gray-50);
            z-index: 2000;
            flex-direction: column;
            overflow: hidden;
        }

        .interview-detail-page.active {
            display: flex;
        }

        .interview-detail-header {
            height: 56px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 2001;
            flex-shrink: 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .interview-detail-title {
            flex: 1;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            text-align: center;
            margin-right: 44px;
        }

        .interview-detail-content {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 24px;
        }

        .interview-detail-hero {
            background: var(--white);
            color: var(--gray-800);
            padding: 28px 20px;
            border-radius: 0 0 var(--radius-xl) var(--radius-xl);
            margin-bottom: 16px;
            border-bottom: 1px solid var(--gray-200);
            position: relative;
        }

        .interview-detail-hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20px;
            width: 40px;
            height: 3px;
            background: var(--accent-blue);
            border-radius: 3px;
        }

        .interview-detail-hero h1 {
            font-size: 21px;
            font-weight: 600;
            line-height: 1.45;
            margin-bottom: 14px;
        }

        .interview-detail-meta {
            display: flex;
            gap: 16px;
            font-size: 13px;
            color: var(--gray-500);
        }

        .interview-detail-body {
            padding: 0 16px;
            font-size: 16px;
            line-height: 1.85;
            color: var(--gray-700);
        }

        .interview-detail-body p {
            margin-bottom: 18px;
        }

        .interview-detail-body img {
            width: 100%;
            border-radius: var(--radius-md);
            margin: 20px 0;
            display: block;
            background: var(--gray-200);
        }

        .interview-media.video {
            width: 100%;
            max-width: 480px;
            aspect-ratio: 16 / 9;
            margin: 20px auto;
            border-radius: var(--radius-md);
            overflow: hidden;
            background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
            display: block;
        }

        .interview-media.video video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            background: transparent;
        }

        /* ============ MY PAGE ============ */
        .profile-header {
            background: var(--white);
            padding: 28px 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            justify-content: space-between;
            border-bottom: 1px solid var(--gray-200);
        }

        .profile-avatar {
            width: 44px;
            height: 44px;
            background: var(--accent-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 600;
            color: var(--white);
        }

        .profile-avatar-big {
            width: 100px;
            height: 100px;
            background: var(--accent-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
            font-weight: 600;
            color: var(--white);
            cursor: pointer;
            border: 4px solid var(--white);
            box-shadow: var(--shadow-md);
            transition: transform 0.2s ease;
        }

        .profile-avatar-big:hover {
            transform: scale(1.03);
        }

        .profile-avatar-big:active {
            transform: scale(0.97);
        }

        .custom-select {
            position: relative;
            width: 100%;
        }

        .custom-select-input {
            width: 100%;
            padding: 12px 40px 12px 16px;
            font-size: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            background: var(--white);
            color: #333;
            appearance: none;
            cursor: pointer;
            box-sizing: border-box;
        }

        .custom-select-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        }

        .date-picker-wrapper {
            cursor: pointer;
        }

        .date-picker-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 15px;
            color: var(--gray-800);
        }

        .date-value {
            flex: 1;
            text-align: left;
        }

        .date-icon {
            width: 20px;
            height: 20px;
            color: var(--accent-blue);
        }

        .date-picker-overlay {
            z-index: 1000;
        }

        .date-picker-modal {
            width: 90%;
            max-width: 360px;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

        .date-picker-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 16px;
            background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
            color: white;
        }

        .date-picker-nav-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
        }

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

        .date-picker-title {
            font-size: 18px;
            font-weight: 600;
        }

        .date-picker-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .weekday {
            text-align: center;
            font-size: 13px;
            color: #999;
            font-weight: 500;
        }

        .date-picker-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            padding: 8px 0;
        }

        .date-day {
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: var(--gray-800);
            cursor: pointer;
            border-radius: 50%;
            transition: all 0.2s;
            margin: 2px;
        }

        .date-day:hover {
            background: rgba(25, 118, 210, 0.1);
        }

        .date-day.other-month {
            color: #ccc;
        }

        .date-day.today {
            background: rgba(25, 118, 210, 0.2);
            color: var(--accent-blue);
            font-weight: 600;
        }

        .date-day.selected {
            background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
            color: white;
            font-weight: 700;
            border: 2px solid #0D47A1;
            box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
            transform: scale(1.1);
        }

        .date-day.disabled {
            color: #ddd;
            cursor: not-allowed;
        }

        .date-picker-footer {
            display: flex;
            border-top: 1px solid #f0f0f0;
        }

        .date-picker-btn {
            flex: 1;
            padding: 14px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .date-picker-btn.btn-cancel {
            background: #f5f5f5;
            color: var(--gray-600);
        }

        .date-picker-btn.btn-cancel:hover {
            background: #eee;
        }

        .date-picker-btn.btn-confirm {
            background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
            color: white;
        }

        .date-picker-btn.btn-confirm:hover {
            opacity: 0.9;
        }

        .custom-select-arrow {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: var(--gray-400);
            font-size: 12px;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            font-size: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            background: var(--white);
            color: #333;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        }

        .form-input[readonly] {
            background: var(--gray-100);
            color: var(--gray-400);
            cursor: not-allowed;
        }

        .btn-small {
            margin-top: 8px;
            padding: 6px 12px;
            font-size: 13px;
            background: var(--accent-blue);
            color: var(--white);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }

        .btn-small:active {
            opacity: 0.8;
        }

        .profile-modal {
            width: 95%;
            max-width: 420px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .profile-avatar-edit {
            width: 100px;
            height: 100px;
            background: var(--accent-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            font-weight: 700;
            color: var(--white);
            border: 4px solid #fff;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }

        .profile-input {
            width: 100%;
            padding: 14px 16px;
            font-size: 16px;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            background: #fff;
            color: #333;
            box-sizing: border-box;
            transition: border-color 0.2s, box-shadow 0.2s;
            cursor: text;
            pointer-events: auto;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        .profile-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
        }

        .profile-input[readonly] {
            background: #f5f5f5;
            color: #999;
            cursor: not-allowed;
        }

        .profile-input[type="number"]::-webkit-inner-spin-button,
        .profile-input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: auto;
            margin: 0;
        }

        .profile-input[type="number"] {
            -moz-appearance: textfield;
        }

        .avatar-input {
            width: 60px;
            height: 60px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            border: 2px dashed #ddd;
            border-radius: 8px;
            background: #fff;
        }

        .avatar-input:focus {
            outline: none;
            border-color: var(--accent-blue);
        }

        .form-actions {
            display: flex;
            gap: 16px;
            margin-top: 24px;
        }

        .modal-footer .form-actions {
            margin-top: 0;
        }

        .form-actions .btn-primary,
        .form-actions .btn-secondary {
            flex: 1;
            width: auto;
            padding: 14px 24px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            margin-top: 0;
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .form-actions .btn-primary {
            background: var(--accent-blue);
            color: var(--white);
        }

        .form-actions .btn-secondary {
            background: #f0f0f0;
            color: #666;
            margin-top: 0;
        }

        .avatar-upload-container {
            position: relative;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid #fff;
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
            background: var(--accent-blue);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-upload-container.default-avatar-bg {
            background: var(--accent-blue);
        }

        .avatar-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .avatar-preview.has-image {
            display: block;
        }

        .avatar-upload-trigger {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            cursor: pointer;
            background: transparent;
        }

        .avatar-input-file {
            display: none;
        }

        .form-group.avatar-group label {
            text-align: center;
        }

        .profile-avatar-container {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .profile-avatar-container.default-avatar {
            background: var(--accent-blue);
        }

        .profile-avatar-container.default-avatar::before {
            content: '🧓';
            position: absolute;
            font-size: 22px;
            z-index: 1;
        }

        .profile-avatar-container.default-avatar.male::before {
            content: '👨‍🦳';
        }

        .profile-avatar-container.default-avatar.female::before {
            content: '👩‍🦳';
        }

        .profile-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .profile-info {
            flex: 1;
        }

        .profile-details {
            background: #fff;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
        }

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

        .detail-label {
            font-size: 14px;
            color: #999;
        }

        .detail-value {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }

        .profile-name {
            font-size: 20px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 4px;
        }

        .guest-actions {
            background: var(--white);
            border-radius: var(--radius-lg);
            padding: 24px 20px;
            margin: 0 16px 16px;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            text-align: center;
        }

        .guest-tip {
            font-size: 15px;
            color: var(--gray-600);
            margin-bottom: 18px;
        }

        .guest-buttons {
            display: flex;
            gap: 12px;
        }

        .guest-buttons .btn-primary,
        .guest-buttons .btn-secondary {
            flex: 1;
            margin-top: 0;
        }

        .logged-in-section {
            display: block;
        }

        .profile-section {
            margin: 0 16px 16px;
        }

        .profile-section-title {
            font-size: 15px;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 10px;
            padding-left: 4px;
        }

        .profile-info-list {
            background: var(--white);
            border-radius: var(--radius-lg);
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .profile-info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 16px;
            border-bottom: 1px solid var(--gray-100);
        }

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

        .profile-info-label {
            font-size: 15px;
            color: var(--gray-500);
        }

        .profile-info-value {
            font-size: 15px;
            color: var(--gray-800);
            font-weight: 500;
        }

        .profile-info-page-content {
            padding: 16px;
        }

        .profile-email {
            font-size: 13px;
            color: var(--gray-400);
        }

        .menu-item {
            background: var(--white);
            padding: 17px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            border-bottom: 1px solid var(--gray-100);
            transition: background 0.15s ease;
        }

        .menu-item:first-child {
            border-radius: var(--radius-md) var(--radius-md) 0 0;
        }

        .menu-item:last-child {
            border-radius: 0 0 var(--radius-md) var(--radius-md);
            border-bottom: none;
        }

        .menu-item:active {
            background: var(--gray-50);
        }

        .menu-item-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .menu-item-icon {
            width: 38px;
            height: 38px;
            background: var(--light-blue);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .menu-item-icon svg {
            width: 20px;
            height: 20px;
            fill: var(--primary-blue);
        }

        .menu-item-text {
            font-size: 15px;
            color: var(--gray-800);
            font-weight: 500;
        }

        .menu-item-arrow {
            color: var(--gray-400);
        }

        .message-btn {
            position: relative;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--gray-800);
        }

        .message-btn svg {
            width: 24px;
            height: 24px;
        }

        .message-btn:hover {
            transform: scale(1.1);
        }

        .message-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            padding: 0 4px;
            background: var(--red);
            color: var(--white);
            border-radius: 9px;
            font-size: 10px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .message-badge:empty {
            display: none;
        }

        /* MESSAGE PAGE STYLES */
        .message-header {
            display: flex;
            align-items: center;
            padding: 10px 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--gray-200);
        }

        .message-header .back-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--gray-600);
            border-radius: var(--radius-sm);
        }

        .message-header .back-btn:active {
            background: var(--gray-100);
        }

        .message-header .back-btn svg {
            width: 24px;
            height: 24px;
        }

        .message-header h2 {
            flex: 1;
            text-align: center;
            font-size: 17px;
            font-weight: 600;
            margin: 0;
            color: var(--gray-800);
        }

        /* MESSAGE DETAIL STYLES */
        #messageDetailPage {
            background: var(--bg-gray);
            min-height: 100vh;
        }

        .detail-container {
            padding: 16px;
        }

        .detail-card {
            background: var(--white);
            border-radius: var(--radius-lg);
            overflow: hidden;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
        }

        .detail-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--gray-800);
            line-height: 1.4;
            padding: 22px 22px 14px;
            margin: 0;
        }

        .detail-time {
            font-size: 14px;
            color: var(--gray-400);
            padding: 0 22px 18px;
            margin: 0;
        }

        .detail-divider {
            height: 1px;
            background: var(--gray-100);
            margin: 0 22px;
        }

        .detail-content {
            font-size: 16px;
            color: var(--gray-700);
            line-height: 1.85;
            word-break: break-word;
            padding: 22px;
        }

        .detail-content p {
            margin: 0 0 16px 0;
        }

        .detail-content p:last-child {
            margin-bottom: 0;
        }

        .detail-content img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 16px 0;
            display: block;
        }

        .detail-content strong {
            font-weight: 600;
        }

        .detail-content ul,
        .detail-content ol {
            padding-left: 20px;
            margin: 16px 0;
        }

        .detail-content li {
            margin-bottom: 8px;
        }

        .detail-content a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .message-list {
            padding: 16px;
        }

        .message-item {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 18px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow: hidden;
        }

        .message-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--accent-blue);
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .message-item.unread {
            background: var(--light-blue);
            border-color: var(--accent-blue);
        }

        .message-item.unread::before {
            opacity: 1;
        }

        .message-item.read {
            background: var(--white);
            border-color: var(--gray-200);
        }

        .message-item:active {
            transform: scale(0.995);
            background: var(--gray-50);
        }

        .message-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .message-title {
            font-weight: 600;
            color: var(--gray-800);
            font-size: 15px;
        }

        .message-time {
            font-size: 12px;
            color: var(--gray-400);
        }

        .message-content {
            font-size: 14px;
            color: var(--gray-500);
            line-height: 1.6;
        }

        .no-messages {
            text-align: center;
            padding: 60px 20px;
            color: var(--gray-400);
        }

        .settings-btn {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 50%;
            color: var(--gray-600);
            cursor: pointer;
            transition: all 0.3s;
        }

        .settings-btn:hover {
            background: rgba(0,0,0,0.05);
        }

        .settings-btn svg {
            width: 22px;
            height: 22px;
        }

        .settings-menu {
            display: none;
            position: absolute;
            top: 70px;
            right: 16px;
            background: var(--white);
            border-radius: var(--radius-md);
            border: 1px solid var(--gray-200);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            z-index: 100;
            min-width: 180px;
        }

        .settings-menu.active {
            display: block;
        }

        .settings-menu-item {
            width: 100%;
            padding: 13px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: transparent;
            border: none;
            color: var(--gray-600);
            font-size: 14px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .settings-menu-item:active {
            background: var(--gray-50);
        }

        .settings-menu-item svg {
            width: 18px;
            height: 18px;
        }

        .settings-menu-item.logout {
            color: var(--red);
            border-top: 1px solid var(--gray-100);
        }

        .logout-section {
            margin-top: 24px;
        }

        .btn-edit-profile {
            width: 100%;
            padding: 14px;
            background: var(--white);
            border: 1px solid var(--gray-300);
            color: var(--gray-700);
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 16px;
            transition: all 0.2s ease;
        }

        .btn-edit-profile:active {
            background: var(--gray-50);
            border-color: var(--gray-400);
        }

        .btn-logout {
            width: 100%;
            padding: 15px;
            background: var(--white);
            border: 1px solid var(--red);
            border-radius: var(--radius-md);
            color: var(--red);
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-logout:active {
            background: #FEF2F2;
        }

        /* ============ MODALS ============ */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 300;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: var(--white);
            width: 90%;
            max-width: 450px;
            border-radius: var(--radius-lg);
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.2s ease;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--gray-200);
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .modal-footer {
            flex-shrink: 0;
            padding: 16px 20px;
            border-top: 1px solid var(--gray-100);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.96);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            border-bottom: 1px solid var(--gray-100);
        }

        .modal-header h3 {
            font-size: 18px;
            color: var(--gray-800);
            font-weight: 600;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 26px;
            cursor: pointer;
            color: var(--gray-400);
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .modal-close:active {
            background: var(--gray-100);
        }

        /* LANGUAGE MODAL */
        .language-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .language-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 12px;
            border-bottom: 1px solid var(--gray-100);
            cursor: pointer;
            font-size: 16px;
            color: var(--gray-800);
            transition: all 0.15s ease;
            border-radius: var(--radius-sm);
        }

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

        .language-item:active {
            background: var(--gray-50);
        }

        .language-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: transparent;
            border: 2px solid var(--gray-300);
            transition: all 0.2s ease;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .language-item.selected .language-dot {
            background: var(--primary-blue);
            border-color: var(--primary-blue);
        }

        .language-item.selected .language-dot::after {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--white);
            border-radius: 50%;
        }

        .language-item.selected {
            color: var(--primary-blue);
            font-weight: 600;
        }

        .language-text {
            font-size: 16px;
        }

        .confirm-modal {
            border-radius: var(--radius-lg);
            margin: 20px;
            max-width: 340px;
            align-self: center;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .confirm-modal-content {
            text-align: center;
            padding: 24px 20px;
        }

        .confirm-modal-content h3 {
            font-size: 18px;
            color: var(--gray-800);
            margin-bottom: 8px;
        }

        .confirm-modal-content p {
            font-size: 14px;
            color: var(--gray-400);
        }

        .confirm-modal-buttons {
            display: flex;
            gap: 12px;
            padding: 0 20px 20px;
        }

        .btn-cancel {
            flex: 1;
            padding: 14px;
            background: var(--gray-100);
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-confirm {
            flex: 1;
            padding: 14px;
            background: var(--red);
            border: none;
            border-radius: 8px;
            color: var(--white);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
        }

        /* LOGIN PROMPT MODAL */
        .login-prompt-modal {
            position: relative;
            border-radius: var(--radius-lg);
            margin: 20px;
            max-width: 320px;
            align-self: center;
            padding: 32px 24px 24px;
            text-align: center;
            animation: fadeIn 0.25s ease;
        }

        .login-prompt-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: transparent;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            padding: 0;
        }

        .login-prompt-close svg {
            width: 20px;
            height: 20px;
        }

        .login-prompt-close:active {
            background: var(--gray-100);
        }

        .login-prompt-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            background: var(--light-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-blue);
        }

        .login-prompt-icon svg {
            width: 32px;
            height: 32px;
        }

        .login-prompt-title {
            font-size: 18px;
            color: var(--gray-800);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .login-prompt-desc {
            font-size: 14px;
            color: var(--gray-600);
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .login-prompt-buttons {
            display: flex;
            gap: 12px;
        }

        .login-prompt-buttons .btn-confirm {
            background: var(--primary-blue);
        }

        /* ============ TOAST ============ */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--gray-800);
            color: var(--white);
            padding: 14px 24px;
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 500;
            z-index: 400;
            transition: transform 0.25s ease, opacity 0.25s ease;
            opacity: 0;
            box-shadow: var(--shadow-lg);
            max-width: 80%;
            text-align: center;
            line-height: 1.5;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .toast.toast-error {
            background: #DC2626;
            color: #fff;
        }

        .toast.toast-success {
            background: #16A34A;
            color: #fff;
        }

        /* 统计数据网格 - 2x2布局 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 12px;
        }

        /* 统计数据网格 - 3列布局 */
        .stats-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 12px;
        }

        .stat-item {
            background: var(--white);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
            border: 1px solid var(--gray-200);
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .stat-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }

        .stat-item-primary {
            border-left: 3px solid var(--accent-blue);
        }

        .stat-item-danger {
            border-left: 3px solid #FF6B6B;
        }

        .stat-item-info {
            border-left: 3px solid #4ECDC4;
        }

        .stat-item-warning {
            border-left: 3px solid #42A5F5;
        }

        .stat-icon {
            font-size: 18px;
            margin-right: 6px;
        }

        .stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-blue);
        }

        .stat-unit {
            font-size: 12px;
            color: var(--gray-400);
            font-weight: normal;
        }

        .stat-label {
            font-size: 11px;
            color: var(--gray-600);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 4px;
        }

        /* 报表图表卡片 */
        .report-chart-card {
            background: var(--white);
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 12px;
            border: 1px solid var(--gray-200);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .chart-title {
            font-size: 13px;
            color: var(--primary-blue);
            margin-bottom: 10px;
            text-align: center;
            font-weight: 600;
        }

        .chart-container {
            padding: 5px;
        }

        .chart-bars {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 120px;
            padding: 10px 5px;
            background: var(--gray-100);
            border-radius: 8px;
        }

        .chart-bar-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .chart-bar {
            width: 36px;
            background: linear-gradient(to top, var(--accent-blue) 0%, #42A5F5 100%);
            border-radius: 6px 6px 0 0;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
            min-height: 20px;
        }

        .chart-bar:hover {
            transform: scaleY(1.05);
            box-shadow: 0 4px 12px rgba(25, 118, 210, 0.5);
        }

        .chart-label {
            font-size: 11px;
            color: var(--gray-400);
        }

        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--gray-200);
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: var(--gray-400);
        }

        .legend-color {
            width: 16px;
            height: 10px;
            border-radius: 2px;
        }

        /* 曲线图容器 */
        .curve-chart-container {
            width: 100%;
            height: 140px;
            padding: 10px;
            background: var(--gray-100);
            border-radius: 12px;
            margin-bottom: 12px;
        }

        .curve-chart {
            width: 100%;
            height: 100%;
        }

        /* 曲线图统计 */
        .curve-stats {
            display: flex;
            justify-content: space-around;
            padding-top: 10px;
            border-top: 1px solid var(--gray-200);
        }

        .curve-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .curve-stat-label {
            font-size: 12px;
            color: var(--gray-600);
        }

        .curve-stat-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-blue);
        }

        /* 性能指标行 */
        .metrics-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .metric-card {
            background: var(--white);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
            border: 1px solid var(--gray-200);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .metric-label {
            font-size: 11px;
            color: var(--gray-600);
            margin-bottom: 4px;
        }

        .metric-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-blue);
        }

        .metric-unit {
            font-size: 12px;
            color: var(--gray-400);
            font-weight: normal;
        }

        /* 旧的 stat-card 样式保留但不再使用 */
        .stat-card {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--gray-200);
            transition: all 0.3s ease;
        }

        /* ============ HOME BANNER ============ */
        .home-banner-section {
            background: var(--white);
            padding: 0 0 16px;
            margin-bottom: 8px;
        }

        .home-banner-slider {
            position: relative;
            width: 100%;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            background: var(--gray-100);
        }

        .home-banner-track {
            display: flex;
            transition: transform 0.4s ease;
            width: 100%;
            aspect-ratio: 16 / 10;
            max-height: 220px;
        }

        .home-banner-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            cursor: pointer;
        }

        .home-banner-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .home-banner-dots {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 2;
        }

        .home-banner-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.55);
            transition: all 0.25s ease;
        }

        .home-banner-dot.active {
            background: var(--white);
            width: 16px;
            border-radius: 4px;
        }

        .home-banner-empty {
            width: 100%;
            aspect-ratio: 16 / 10;
            max-height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-400);
            font-size: 14px;
            background: var(--gray-100);
            border-radius: var(--radius-lg);
        }

        /* ============ HOME GRID ============ */
        .home-grid {
            display: flex;
            justify-content: center;
            gap: 12px;
            padding: 16px;
            background: var(--white);
        }

        .home-grid-item {
            flex: 0 0 calc(25% - 9px);
            max-width: calc(25% - 9px);
            background: linear-gradient(135deg, #ffffff 0%, var(--light-blue) 100%);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            padding: 14px 6px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .home-grid-item:active {
            transform: scale(0.96);
            box-shadow: var(--shadow-md);
        }

        .home-grid-icon {
            width: 38px;
            height: 38px;
            margin: 0 auto 8px;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .home-grid-icon svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
        }

        .home-grid-label {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-800);
        }

        /* ============ CONTENT DETAIL PAGE ============ */
        .content-detail-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gray-50);
            z-index: 2000;
            flex-direction: column;
            overflow: hidden;
        }

        .content-detail-page.active {
            display: flex;
        }

        .content-detail-header {
            height: 56px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 2001;
            flex-shrink: 0;
            border-bottom: 1px solid var(--gray-200);
        }

        .content-detail-title {
            flex: 1;
            color: var(--gray-800);
            font-size: 17px;
            font-weight: 600;
            text-align: center;
            margin-right: 44px;
        }

        .content-detail-content {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 24px;
        }

        .content-detail-hero {
            background: var(--white);
            color: var(--gray-800);
            border-radius: 0 0 var(--radius-xl) var(--radius-xl);
            margin-bottom: 16px;
            border-bottom: 1px solid var(--gray-200);
            overflow: hidden;
        }

        .content-detail-cover {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            background: var(--gray-200);
        }

        .content-detail-hero h1 {
            font-size: 21px;
            font-weight: 600;
            line-height: 1.45;
            padding: 24px 20px 16px;
            margin: 0;
        }

        .content-detail-body {
            padding: 0 16px;
            font-size: 16px;
            line-height: 1.85;
            color: var(--gray-700);
        }

        .content-detail-body p {
            margin-bottom: 18px;
        }

        .content-detail-body img,
        .content-detail-body video {
            width: 100%;
            border-radius: var(--radius-md);
            margin: 20px 0;
            display: block;
            background: var(--gray-200);
        }

        /* ============ FLOATING CUSTOMER SERVICE ============ */
        .floating-service-btn {
            position: fixed;
            top: 50%;
            right: 14px;
            transform: translateY(-50%);
            z-index: 150;
            display: none;
            align-items: center;
            gap: 6px;
            padding: 9px 14px 9px 10px;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 50px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
            cursor: pointer;
            transition: opacity 0.2s ease, box-shadow 0.2s ease;
            max-width: 160px;
            user-select: none;
            -webkit-user-select: none;
            touch-action: none;
        }

        .floating-service-btn.dragging {
            transition: none;
            opacity: 0.9;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
        }

        .floating-service-btn:active {
            transform: scale(0.96);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .floating-service-btn.visible {
            display: flex;
        }

        .floating-service-btn img {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            background: var(--light-blue);
        }

        .floating-service-btn.no-avatar img {
            display: none;
        }

        .floating-service-btn span {
            font-size: 14px;
            color: var(--gray-700);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ============ SERVICE MODAL ============ */
        .service-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.55);
            z-index: 350;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            padding: 20px;
        }

        .service-modal-overlay.active {
            display: flex;
        }

        .service-modal {
            background: var(--white);
            width: 100%;
            max-width: 320px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            animation: fadeIn 0.25s ease;
            position: relative;
        }

        .service-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(0, 0, 0, 0.06);
            border-radius: 50%;
            font-size: 22px;
            color: var(--gray-500);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .service-modal-close:active {
            background: rgba(0, 0, 0, 0.12);
        }

        .service-modal-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 24px 20px 16px;
            background: var(--light-blue);
        }

        .service-modal-header img {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--white);
            border: 2px solid var(--white);
        }

        .service-modal-name {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
            text-align: center;
        }

        .service-modal-body {
            padding: 20px;
        }

        .service-qr-section {
            text-align: center;
            margin-bottom: 20px;
        }

        .service-qr-section img {
            width: 170px;
            height: 170px;
            object-fit: contain;
            border-radius: var(--radius-md);
            background: var(--gray-100);
            border: 1px solid var(--gray-200);
        }

        .service-qr-section p {
            font-size: 12px;
            color: var(--gray-400);
            margin-top: 10px;
        }

        .service-contact-section {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .service-contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .service-contact-label {
            color: var(--gray-400);
            flex-shrink: 0;
            width: 56px;
        }

        .service-contact-value {
            color: var(--gray-800);
            font-weight: 500;
            flex: 1;
            word-break: break-word;
            min-width: 0;
        }

        .service-contact-action {
            flex-shrink: 0;
            padding: 5px 12px;
            background: var(--primary-blue);
            color: var(--white);
            border: none;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            line-height: 1.4;
            -webkit-tap-highlight-color: transparent;
        }

        .service-contact-action:active {
            background: #2457A0;
        }

/* ============ PRODUCTS PAGE ============ */
.product-tabs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.product-tabs::-webkit-scrollbar {
    display: none;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    padding-top: 58px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 220px;
    background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
    position: relative;
    overflow: hidden;
}

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

.product-card-body {
    padding: 14px;
}

.product-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-card-body p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
}

.product-original-price {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card-cover {
    position: relative;
}

.product-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.product-card-add-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.product-card-add-btn:active {
    background: var(--primary-blue);
    color: var(--white);
}

/* ============ FLOATING CART BUTTON ============ */
.floating-cart-btn {
    position: fixed;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.floating-cart-btn.dragging {
    transition: none;
    opacity: 0.9;
}

.floating-cart-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.floating-cart-btn svg {
    width: 24px;
    height: 24px;
}

/* ============ PRODUCT DETAIL ============ */
.product-detail-header {
    justify-content: flex-start;
    gap: 12px;
}

.cart-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    cursor: pointer;
}

.cart-icon-btn svg {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-content {
    padding-bottom: 90px;
}

.product-detail-hero {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.product-detail-hero img,
.product-detail-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品详情多媒体画廊 */
.product-gallery {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.product-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.product-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.product-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-gallery-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--white);
}

.product-detail-info {
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.product-detail-info h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-detail-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-detail-content-body {
    padding: 16px;
    background: var(--white);
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.product-detail-content-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.product-detail-content-body video {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 12px 0;
}

.product-detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 10px 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1000;
    gap: 12px;
}

.product-detail-price {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
}

.product-detail-actions {
    display: flex;
    gap: 10px;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary {
    width: auto;
    padding: 12px 20px;
    flex: none;
}

/* ============ CART PAGE ============ */
.cart-content {
    padding: 16px;
    padding-bottom: 90px;
    min-height: calc(100vh - 56px - 70px);
}

.cart-empty,
.address-empty,
.order-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    background: var(--gray-50);
    border: none;
    font-size: 16px;
    color: var(--gray-700);
    cursor: pointer;
}

.quantity-control span {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.cart-delete-btn {
    color: var(--gray-500);
    font-size: 13px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 72px;
    height: auto;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1000;
    box-sizing: border-box;
}

.cart-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cart-total-label {
    font-size: 14px;
    color: var(--gray-600);
}

.cart-total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
}

.cart-footer .btn-primary {
    width: auto;
    padding: 12px 28px;
}

/* ============ CHECKOUT PAGE ============ */
.checkout-content {
    padding: 16px;
    padding-bottom: 90px;
    min-height: calc(100vh - 56px - 70px);
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.checkout-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.checkout-address {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
}

.checkout-address-info {
    flex: 1;
}

.checkout-address-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.checkout-address-detail {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkout-address-arrow {
    color: var(--gray-400);
}

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.checkout-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--light-blue), #DBEAFE);
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.checkout-item-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.checkout-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
}

.checkout-coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-blue);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 12px 0;
}

.checkout-coupon-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-coupon-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.checkout-coupon-desc {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 500;
}

.checkout-coupon-change {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
}

.checkout-summary {
    border-top: 1px solid var(--gray-100);
    padding-top: 12px;
    margin-top: 8px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.checkout-summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200);
}

.checkout-summary-row.total .price {
    color: var(--red);
}

.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1000;
}

.checkout-footer .btn-primary {
    width: auto;
    padding: 12px 28px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ============ ADDRESS PAGE ============ */
.address-list {
    padding: 16px;
    padding-bottom: 90px;
    min-height: calc(100vh - 56px - 70px);
}

.address-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.address-card-default {
    border-color: var(--accent-blue);
    background: var(--light-blue);
}

.address-card-selectable {
    cursor: pointer;
}

.address-card-selectable .address-card-header {
    justify-content: flex-start;
}

.address-card-selected {
    border-color: var(--gold);
    background: var(--gold-light);
}

.address-selected-badge {
    font-size: 12px;
    color: var(--black);
    background: var(--gold);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.address-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.address-card-phone {
    font-size: 14px;
    color: var(--gray-600);
}

.address-card-detail {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 12px;
}

.address-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.address-default-label {
    font-size: 12px;
    color: var(--accent-blue);
    background: rgba(49, 130, 206, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.address-select-btn {
    font-size: 13px;
    color: var(--gold);
    border: 1px solid var(--gold);
    background: transparent;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: 8px;
}

.address-select-btn.selected {
    color: var(--black);
    background: var(--gold);
}

.address-card-btns {
    display: flex;
    gap: 12px;
}

.address-card-btns button {
    font-size: 13px;
    color: var(--gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--gray-700);
}

.custom-checkbox {
    position: relative;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.custom-checkbox label {
    margin-left: 4px;
}

/* ============ PAYMENT MODAL ============ */
.payment-modal .modal {
    max-width: 320px;
}

.payment-body {
    text-align: center;
    padding: 24px 20px;
}

.payment-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.payment-tip {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-btn svg {
    width: 20px;
    height: 20px;
}

/* ============ COUPONS PAGE ============ */
.coupon-list {
    padding: 16px;
    padding-bottom: 90px;
    min-height: calc(100vh - 56px - 70px);
}

.coupon-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 15px;
}

.coupon-hint {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.coupon-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.coupon-card.unused {
    background: linear-gradient(135deg, var(--white) 0%, #EBF4FF 100%);
}

.coupon-card.used,
.coupon-card.expired {
    opacity: 0.7;
}

.coupon-card-selectable {
    cursor: pointer;
}

.coupon-card-selected {
    border: 2px solid var(--gold);
    background: var(--gold-light);
}

.coupon-select-badge-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-left: 1px dashed var(--gray-200);
}

.coupon-selected-badge {
    font-size: 12px;
    color: var(--black);
    background: var(--gold);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coupon-unusable-badge {
    font-size: 12px;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 10px;
}

.coupon-left {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-right: 1px dashed var(--gray-300);
    background: rgba(43, 108, 176, 0.06);
}

.coupon-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.coupon-amount span {
    font-size: 14px;
    margin-right: 2px;
}

.coupon-status {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.coupon-right {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.coupon-valid {
    font-size: 13px;
    color: var(--gray-500);
}

/* ============ ORDERS PAGE ============ */
.order-status-tabs {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gray-200);
}

.order-status-tabs::-webkit-scrollbar {
    display: none;
}

.order-status-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: 16px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.order-status-tab.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.order-list {
    padding: 16px;
    padding-bottom: 20px;
    min-height: calc(100vh - 56px - 70px);
}

.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.order-card-no {
    font-size: 13px;
    color: var(--gray-600);
}

.order-card-status {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
}

.order-card-status.paid {
    color: var(--orange);
}

.order-card-status.shipped {
    color: var(--primary-blue);
}

.order-card-status.received,
.order-card-status.completed {
    color: var(--green);
}

.order-card-status.pending_payment {
    color: var(--red);
}

.order-item-row {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.order-item-row img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--light-blue);
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.order-item-info p {
    font-size: 12px;
    color: var(--gray-500);
}

.order-item-price {
    font-size: 14px;
    color: var(--gray-700);
    text-align: right;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.order-card-total {
    font-size: 14px;
    color: var(--gray-700);
}

.order-card-total .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--red);
}

.order-card-actions {
    display: flex;
    gap: 8px;
}

.order-card-actions .btn-sm {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.order-card-actions .btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.order-card-actions .btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

/* ============ ORDER DETAIL ============ */
.order-detail-content {
    padding: 16px;
    padding-bottom: 20px;
    min-height: calc(100vh - 56px - 70px);
}

.order-detail-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.order-detail-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.order-detail-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--gray-200);
}

.order-detail-row.total .price {
    color: var(--red);
}

.tracking-no-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.btn-copy-inline {
    font-size: 12px;
    color: var(--primary-blue);
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 2px 8px;
    cursor: pointer;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.btn-copy-inline:active {
    color: var(--black);
    background: var(--gold);
}

.btn-copy-filled {
    color: var(--primary-blue);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-copy-filled:active {
    background: #e6c200;
    border-color: #e6c200;
}

/* ============ PROFILE MENU ============ */
.profile-menu-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 16px;
    margin-top: 0;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.profile-menu-item:active {
    background: var(--gray-50);
}

.profile-menu-item span {
    flex: 1;
    font-size: 15px;
    color: var(--gray-800);
    font-weight: 500;
}

.profile-menu-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-icon svg {
    width: 100%;
    height: 100%;
}

.profile-menu-arrow {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

.profile-menu-badge {
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: var(--red);
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

/* ============ HOME STORY HEADING ============ */
.home-story-heading {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ============ ADDRESS ADD BUTTON ============ */
.address-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.22);
    transition: all 0.2s ease;
}

.address-add-btn svg {
    width: 14px;
    height: 14px;
}

.address-add-btn:active {
    transform: scale(0.96);
    background: #2457A0;
}

/* ============ VISUAL UPGRADES ============ */

/* 页面头部蓝色装饰条 */
.page-header::before,
.interview-detail-header::before,
.content-detail-header::before,
.message-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 28px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
}

.interview-detail-header,
.content-detail-header,
.message-header {
    position: relative;
}

/* 首页顶部渐变区域 */
#homePage {
    background: linear-gradient(180deg, #EBF4FF 0%, var(--gray-50) 180px);
}

/* 首页九宫格提升 */
.home-grid {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(43, 108, 176, 0.08);
}

.home-grid-item {
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F0FF 100%);
    border: 1px solid rgba(43, 108, 176, 0.12);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.home-grid-item:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 108, 176, 0.14);
}

.home-grid-icon {
    background: transparent;
    box-shadow: none;
}

/* 品牌故事卡片 */
.home-story-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(43, 108, 176, 0.08);
    position: relative;
    overflow: hidden;
}

.home-story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
}

.home-story-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* 价值观卡片 */
.home-values {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-value-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(43, 108, 176, 0.08);
    transition: all 0.25s ease;
}

.home-value-item:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.home-value-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.1);
}

.home-value-content {
    flex: 1;
    min-width: 0;
}

.home-value-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.home-value-item p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Tab 选中状态强化 */
.tab-item.active,
.series-tabs .tab-item.active,
.order-status-tab.active,
.product-tabs .tab-item.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.25);
}

.product-tabs,
.series-tabs,
.order-status-tabs {
    background: rgba(255, 255, 255, 0.98);
}

/* 卡片通用提升 */
.course-card,
.product-card,
.interview-card,
.health-news-card,
.order-card,
.address-card,
.profile-menu-list,
.checkout-section,
.cart-item {
    border: 1px solid rgba(43, 108, 176, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.course-card:active,
.product-card:active,
.interview-card:active,
.health-news-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.1);
}

/* 卡片列表分隔装饰：相邻卡片之间显示医疗蓝小横杠，位于 gap 中心 */
.product-list .product-card + .product-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #2E86AB;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    top: -8px;
}

.course-list .course-card + .course-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #2E86AB;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    top: -10px;
}

.interview-list .interview-card + .interview-card::before,
.health-news-list .health-news-card + .health-news-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #2E86AB;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    top: -12px;
}

/* 访谈/资讯卡片增强隔离度 */
.interview-card,
.health-news-card {
    border: 1px solid rgba(43, 108, 176, 0.12);
    box-shadow: 0 6px 18px rgba(43, 108, 176, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.interview-card:hover,
.health-news-card:hover {
    box-shadow: 0 10px 26px rgba(43, 108, 176, 0.14), 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 课程卡片封面 */
.course-cover,
.product-card-cover,
.interview-cover,
.health-news-cover {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* 产品加入购物车按钮 */
.product-card-add-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.22);
}

.product-card-add-btn:active {
    background: #2457A0;
}

/* 我的页面头部 */
.profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin: 0 0 16px 0;
    box-shadow: 0 8px 24px rgba(43, 108, 176, 0.2);
}

.profile-name {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

.message-btn,
.settings-btn {
    background: transparent;
    border: none;
    color: var(--white);
}

.message-btn:active,
.settings-btn:active {
    background: transparent;
}

/* 个人信息卡片 */
.profile-section {
    margin: 0 16px 16px;
}

.profile-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 10px;
    padding-left: 4px;
}

.profile-info-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(43, 108, 176, 0.08);
}

.profile-avatar-img {
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 底部导航 */
.bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(43, 108, 176, 0.08);
}

.nav-item.active {
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
    color: var(--primary-blue);
}

/* 访谈/资讯详情页标题优化 */
.interview-detail-hero,
.content-detail-hero {
    background: var(--white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(43, 108, 176, 0.08);
}

.interview-detail-hero::after,
.content-detail-hero::after {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: 4px;
}

/* 空状态 */
.cart-empty,
.interview-empty,
.address-empty {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin: 16px;
    padding: 60px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px dashed rgba(43, 108, 176, 0.2);
    color: var(--gray-500);
}

/* 网站备案号 */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 72px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(43, 108, 176, 0.08);
    z-index: 999;
}

.site-footer a {
    color: var(--gray-400);
    text-decoration: none;
}

.site-footer a:active {
    color: var(--primary-blue);
}

.main-content {
    padding-bottom: 110px;
}


