@charset "UTF-8";
        :root {
            --party-red: #c70000;    /* 党徽红 - 主色 */
            --hebei-blue: #1a5fad;   /* 河北蓝 - 主色 */
            --hebei-blue-dark: #134a8a;
            --eco-green: #27ae60;    /* 生态绿 */
            --accent: #e74c3c;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --hebei-yellow: #f1c40f;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            max-width: 100%;
            width: 100%;
            max-width: 500px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .app-header {
            background: linear-gradient(135deg, var(--party-red) 0%, #a00000 100%);
            color: white;
            padding: 25px 20px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .hebei-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(45deg, transparent 65%, rgba(255,255,255,0.1) 65%, rgba(255,255,255,0.1) 70%, transparent 70%),
                linear-gradient(-45deg, transparent 65%, rgba(255,255,255,0.1) 65%, rgba(255,255,255,0.1) 70%, transparent 70%);
            background-size: 30px 30px;
            opacity: 0.3;
        }
        
        .great-wall-pattern {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 15px;
            background: 
                repeating-linear-gradient(90deg, 
                    transparent, 
                    transparent 10px, 
                    rgba(255,255,255,0.3) 10px, 
                    rgba(255,255,255,0.3) 20px);
        }
        
        .party-emblem {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            background: var(--party-red);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: gold;
            font-size: 24px;
            z-index: 2;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }
        
        .logo {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 50%;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 2;
            border: 3px solid var(--hebei-blue);
        }
        
        .logo i {
            font-size: 40px;
            color: var(--hebei-blue);
        }
        
        h1 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            font-weight: 700;
            position: relative;
            z-index: 2;
        }
        
        .subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 15px;
            position: relative;
            z-index: 2;
        }
        
        .theme-badge {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            border-radius: 20px;
            padding: 5px 15px;
            margin: 10px 0;
            font-size: 0.9rem;
            border: 1px solid rgba(255,255,255,0.3);
        }
        
        .app-nav {
            display: flex;
            justify-content: space-around;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 30px;
            padding: 8px;
            margin: 0 20px;
            position: relative;
            z-index: 2;
            backdrop-filter: blur(10px);
        }
        
        .nav-item {
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .nav-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.5s;
        }
        
        .nav-item:hover::before {
            left: 100%;
        }
        
        .nav-item.active {
            background: white;
            color: var(--party-red);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .app-body {
            padding: 25px 20px;
            min-height: 500px;
        }
        
        .page {
            display: none;
            animation: fadeIn 0.5s;
        }
        
        .page.active {
            display: block;
        }
        
        .page-title {
            font-size: 1.4rem;
            color: var(--hebei-blue);
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .page-title::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 80px;
            height: 3px;
            background: var(--party-red);
            border-radius: 3px;
        }
        
        .page-title i {
            margin-right: 12px;
            background: rgba(26, 95, 173, 0.15);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--hebei-blue);
        }
        
        .card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 0, 0, 0.03);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: var(--hebei-blue);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .input-group {
            margin-bottom: 20px;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--dark);
            font-weight: 500;
            font-size: 0.95rem;
        }
        
        .input-row {
            display: flex;
            gap: 10px;
        }
        
        .input-field {
            flex: 1;
            position: relative;
        }
        
        .input-field input {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 1rem;
            background: #f9f9f9;
            transition: all 0.3s;
        }
        
        .input-field input:focus {
            border-color: var(--hebei-blue);
            background: white;
            outline: none;
            box-shadow: 0 0 0 3px rgba(26, 95, 173, 0.2);
        }
        
        .input-field .unit {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--dark);
            font-size: 0.9rem;
        }
        
        .btn {
            background: linear-gradient(to right, var(--party-red), #a00000);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 12px;
            font-size: 1.1rem;
            cursor: pointer;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s;
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(199, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .btn::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                to right,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.3) 50%,
                rgba(255, 255, 255, 0) 100%
            );
            transform: rotate(30deg);
            transition: all 0.6s;
        }
        
        .btn:hover::after {
            transform: translateX(100%) rotate(30deg);
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(199, 0, 0, 0.4);
        }
        
        .btn:active {
            transform: translateY(0);
        }
        
        .btn-secondary {
            background: white;
            color: var(--hebei-blue);
            border: 1px solid var(--hebei-blue);
        }
        
        .result-card {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border-radius: 15px;
            padding: 20px;
            margin: 25px 0;
            text-align: center;
            border: 1px solid #bbdefb;
            position: relative;
            overflow: hidden;
        }
        
        .hebei-watermark {
            position: absolute;
            bottom: -30px;
            right: -30px;
            font-size: 8rem;
            opacity: 0.05;
            color: var(--hebei-blue);
            transform: rotate(-20deg);
            z-index: 0;
        }
        
        .data-watermark {
            position: absolute;
            bottom: 10px;
            right: 10px;
            font-size: 0.7rem;
            opacity: 0.5;
            color: var(--dark);
            z-index: 1;
        }
        
        .result-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--hebei-blue);
            margin: 10px 0;
            position: relative;
            z-index: 1;
        }
        
        .result-label {
            color: var(--dark);
            font-size: 1.1rem;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
        }
        
        .comparison {
            display: flex;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.7);
            padding: 15px;
            border-radius: 12px;
            margin-top: 15px;
            position: relative;
            z-index: 1;
        }
        
        .comp-item {
            text-align: center;
            flex: 1;
        }
        
        .comp-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark);
        }
        
        .comp-label {
            font-size: 0.9rem;
            color: var(--dark);
        }
        
        .highlight {
            color: var(--party-red);
            font-weight: 700;
        }
        
        .chart-container {
            height: 250px;
            margin: 25px 0;
        }
        
        .saving-card {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-radius: 15px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
            border: 1px solid #c8e6c9;
        }
        
        .saving-title {
            font-size: 1.2rem;
            color: var(--eco-green);
            margin-bottom: 15px;
            font-weight: 600;
        }
        
        .saving-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--eco-green);
            margin: 10px 0;
        }
        
        .tip-card {
            background: #fff8e1;
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
            font-size: 0.95rem;
            border-left: 4px solid var(--hebei-yellow);
        }
        
        .certificate-container {
            text-align: center;
            margin: 20px 0;
        }
        
        .certificate-preview {
            width: 100%;
            max-width: 300px;
            height: 400px;
            margin: 0 auto;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 3px solid var(--party-red);
        }
        
        .cert-overlay {
            background: rgba(255, 255, 255, 0.95);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .cert-content {
            text-align: center;
            z-index: 2;
        }
        
        .cert-title {
            font-size: 1.8rem;
            color: var(--party-red);
            margin-bottom: 20px;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .cert-text {
            font-size: 1.2rem;
            margin: 15px 0;
            line-height: 1.8;
            color: var(--dark);
        }
        
        .cert-water {
            font-size: 2rem;
            color: var(--hebei-blue);
            font-weight: 700;
            margin: 20px 0;
            background: rgba(26, 95, 173, 0.1);
            padding: 10px;
            border-radius: 10px;
            display: inline-block;
        }
        
        .cert-logo {
            width: 80px;
            height: 80px;
            background: var(--party-red);
            border-radius: 50%;
            margin: 20px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        .hebei-feature {
            background: rgba(26, 95, 173, 0.1);
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            border-left: 4px solid var(--hebei-blue);
        }
        
        .hebei-feature i {
            color: var(--hebei-blue);
            font-size: 1.5rem;
            margin-right: 15px;
        }
        
        .dialect-switch {
            display: flex;
            background: #f5f7fa;
            border-radius: 30px;
            padding: 5px;
            margin: 20px 0;
        }
        
        .dialect-option {
            flex: 1;
            padding: 10px;
            text-align: center;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .dialect-option.active {
            background: var(--hebei-blue);
            color: white;
        }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .action-buttons .btn {
            flex: 1;
            margin-top: 0;
        }
        
        .footer {
            text-align: center;
            padding: 20px;
            background: #f5f7fa;
            color: var(--dark);
            font-size: 0.9rem;
            border-top: 1px solid #eee;
        }
        
        .footer-logo {
            font-weight: 700;
            color: var(--hebei-blue);
        }
        
        .performance-badge {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(39, 174, 96, 0.9);
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            z-index: 3;
        }
        
        .loading-indicator {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #ddd;
            z-index: 1000;
            display: none;
        }
        
        .loading-indicator::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 50%;
            background: var(--party-red);
            animation: loading 1.5s infinite;
        }
        
        .saved-indicator {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--eco-green);
            color: white;
            padding: 10px 20px;
            border-radius: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            z-index: 1000;
            display: none;
        }
        
        .ai-tag {
            display: inline-block;
            background: rgba(0,0,0,0.05);
            border-radius: 4px;
            padding: 2px 6px;
            font-size: 0.8rem;
            margin-top: 8px;
            color: #666;
        }
        
        .water-usage-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        
        .water-usage-item:last-child {
            border-bottom: none;
        }
        
        .water-usage-label {
            font-weight: 500;
        }
        
        .water-usage-value {
            color: var(--hebei-blue);
            font-weight: 700;
        }
        
        .name-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            margin: 10px 0;
        }
        
        .references {
            margin-top: 30px;
            padding: 15px;
            background: #f9f9f9;
            border-radius: 10px;
            font-size: 0.8rem;
            color: #666;
        }
        
        .official-badge {
            display: inline-block;
            background: var(--party-red);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            margin-left: 5px;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        
        @keyframes loading {
            0% { left: -50%; }
            100% { left: 150%; }
        }
        
        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
        
        /* 响应式优化 */
        @media (max-width: 640px) {
            .app-header {
                padding: 20px 15px 15px;
            }
            
            .app-nav {
                margin: 0 10px;
            }
            
            .nav-item {
                padding: 6px 10px;
                font-size: 0.8rem;
            }
            
            .app-body {
                padding: 20px 15px;
            }
            
            .page-title {
                font-size: 1.2rem;
            }
            
            .input-row {
                flex-direction: column;
                gap: 15px;
            }
            
            .result-value {
                font-size: 2rem;
            }
            
            .cert-title {
                font-size: 1.5rem;
            }
            
            .cert-text {
                font-size: 1rem;
            }
            
            .chart-container {
                height: 220px;
            }
            
            .certificate-preview {
                height: 360px;
            }
        }
        
        @media (max-width: 480px) {
            .logo {
                width: 60px;
                height: 60px;
            }
            
            .logo i {
                font-size: 30px;
            }
            
            h1 {
                font-size: 1.5rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
            }
            
            .page-title {
                font-size: 1.1rem;
                margin-bottom: 15px;
            }
            
            .cert-water {
                font-size: 1.5rem;
            }
            
            .cert-logo {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .party-emblem {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }
        }
        
        /* iOS 特定样式 */
        @supports (-webkit-touch-callout: none) {
            .btn {
                -webkit-tap-highlight-color: transparent;
            }
            
            input, select, textarea {
                font-size: 16px; /* 防止iOS缩放 */
            }
        }
        
        /* Android 特定样式 */
        @supports (-moz-appearance:none) {
            .btn {
                -moz-tap-highlight-color: transparent;
            }
        }
