body {
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://api.suyanw.cn/api/comic3.php');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            z-index: -3;
            filter: blur(0px);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            margin: 0;
            padding: 16px;
            box-sizing: border-box;
        }
        .header {
            text-align:center;
            display: flex;
            align-items: center;
            margin-bottom: 24px;
        }
        .header h1 {
            text-align:center;
            font-size: 28px;
            font-weight: 700;
            color: #212529;
            margin: 0;
        }
        .card {
            background-color: #fff;
            border-radius: 25px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        .card-title {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        .card-title .tag {
            width: 24px;
            height: 24px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 30px;
            margin-right: 8px;
        }
        .card-title h2 {
            font-size: 18px;
            font-weight: 600;
            color: #212529;
            margin: 0;
        }
        .card-desc {
            font-size: 16px;
            font-weight: 500;
            color: #212529;
            margin-bottom: 8px;
        }
        .card-info {
            font-size: 14px;
            color: #6c757d;
            line-height: 1.5;
        }
        .form-group {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }
        .form-group .step {
            font-size: 18px;
            font-weight: 600;
            color: #495057;
            margin-right: 8px;
            min-width: 24px;
        }
        .form-group label {
            flex: 1;
            font-size: 16px;
            color: #212529;
            line-height: 1.5;
        }
        .form-group input {
            width: 80px;
            height: 32px;
            border: 1px solid #ced4da;
            border-radius: 25px;
            padding: 0 8px;
            font-size: 16px;
            color: #495057;
            text-align: center;
        }
        .form-group .unit {
            font-size: 16px;
            color: #495057;
            margin-left: 4px;
        }
        .btn-calculate {
            display: block;
            width: 100%;
            height: 40px;
            background-color: #ff5f55d5;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            color: #fff;
            cursor: pointer;
            margin-bottom: 24px;
            transition: background-color 0.2s;
        }
        .btn-calculate:hover {
            background-color: #ff5f55a3;
        }
        .btn-calculate:disabled {
            background-color: #d0d0d0;
            cursor: not-allowed;
        }
        .btn-history, .btn-reset {
            display: block;
            width: 100%;
            height: 40px;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 16px;
            transition: all 0.2s;
        }
        .btn-history {
            border: 1px solid #212529;
            background-color: #fff;
            color: #212529;
        }
        .btn-history:hover {
            background-color: #f8f9fa;
        }
        .btn-reset {
            border: 1px solid #f59e0b;
            background-color: #fff;
            color: #f59e0b;
        }
        .btn-reset:hover {
            background-color: #fef3c7;
        }
        .privacy {
            display: flex;
            align-items: center;
            background-color: #f1f3f5;
            border-radius: 25px;
            padding: 12px;
        }
        .privacy .shield {
            width: 24px;
            height: 24px;
            background-color: #22c55e;
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 14px;
            margin-right: 8px;
        }
        .privacy .privacy-info {
            font-size: 14px;
            color: #6c757d;
            line-height: 1.5;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background-color: white;
            border-radius: 25px;
            width: 90%;
            max-width: 500px;
            max-height: 80%;
            overflow-y: auto;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #212529;
        }
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6c757d;
        }
        .history-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        .history-item {
            padding: 12px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .history-item:last-child {
            border-bottom: none;
        }
        .history-info {
            flex: 1;
        }
        .history-date {
            font-size: 14px;
            color: #6c757d;
            margin-bottom: 4px;
        }
        .history-result {
            font-size: 16px;
            color: #212529;
            font-weight: 500;
        }
        .delete-btn {
            background-color: #f87171;
            color: white;
            border: none;
            border-radius: 25px;
            padding: 6px 12px;
            cursor: pointer;
            font-size: 14px;
        }
        .empty-history {
            text-align: center;
            padding: 20px;
            color: #6c757d;
        }
        
        .result-modal {
            display: none;
        }
        .result-content {
            text-align: center;
        }
        .result-title {
            font-size: 24px;
            font-weight: 700;
            color: #ff808a;
            margin-bottom: 16px;
        }
        .result-details {
            font-size: 18px;
            margin-bottom: 20px;
            color: #495057;
        }
        .result-actions {
            display: flex;
            gap: 12px;
        }
        .btn-ok {
            flex: 1;
            height: 40px;
            background-color: #f07882de;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
        }
        .btn-save {
            flex: 1;
            height: 40px;
            background-color: #f07882de;
            color: white;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            cursor: pointer;
        }