* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
            min-height: 100vh;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header {
            background: linear-gradient(135deg, #1777ff 0%, #0d5fd9 100%);
            padding: 30px 0;
            text-align: center;
            box-shadow: 0 4px 20px rgba(23, 119, 255, 0.3);
            position: relative;
        }

        .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            object-fit: cover;
        }

        .logo-text {
            color: white;
        }

        .logo-text h1 {
            font-size: 32px;
            font-weight: 600;
            letter-spacing: 2px;
        }

        .logo-text p {
            font-size: 14px;
            opacity: 0.9;
            margin-top: 5px;
        }

        .nav-toggle {
            width: 40px;
            height: 40px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .nav-toggle:hover {
            transform: scale(1.1);
        }

        .nav-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(13, 95, 217, 0.98);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            z-index: 1000;
        }

        .nav-menu.show {
            max-height: 300px;
            padding: 20px 0;
        }

        .nav-menu a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 12px 20px;
            font-size: 15px;
            transition: background 0.3s ease;
        }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .header-nav-links {
            display: flex;
            gap: 30px;
            margin-left: 40px;
        }

        .header-nav-links a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 15px;
            transition: all 0.3s ease;
            white-space: nowrap;
            position: relative;
            padding-bottom: 5px;
        }

        .header-nav-links a:hover {
            color: white;
        }

        .header-nav-links a.active {
            color: white;
            font-weight: 600;
        }

        .header-nav-links a.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: white;
            border-radius: 2px;
        }

        .nav {
            display: none;
        }

        .main-content {
            background: white;
            margin: 30px 0;
            padding: 50px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(23, 119, 255, 0.1);
        }

        .page-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .page-title h2 {
            font-size: 28px;
            color: #1777ff;
            position: relative;
            display: inline-block;
        }

        .page-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: #1777ff;
            border-radius: 2px;
        }

        .calculator-section {
            max-width: 700px;
            margin: 0 auto 40px;
        }

        .calculator-card {
            background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
            border-radius: 16px;
            padding: 30px;
            border: 1px solid #e0e8f5;
        }

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

        .input-group label {
            display: block;
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .input-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .input-row input, .input-row select {
            flex: 1;
            padding: 14px 16px;
            border: 2px solid #e0e8f5;
            border-radius: 12px;
            font-size: 16px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            outline: none;
            min-height: 48px;
            -webkit-appearance: none;
            appearance: none;
        }

        .input-row input:focus, .input-row select:focus {
            border-color: #1777ff;
            box-shadow: 0 0 0 3px rgba(23, 119, 255, 0.1);
        }

        .input-row select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 32px;
        }

        .input-row .unit {
            color: #666;
            font-size: 14px;
            white-space: nowrap;
        }

        .repayment-methods {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .method-option {
            position: relative;
        }

        .method-option input {
            position: absolute;
            opacity: 0;
        }

        .method-option label {
            display: block;
            padding: 14px 15px;
            background: white;
            border: 2px solid #e0e8f5;
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            margin-bottom: 0;
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .method-option input:checked + label {
            border-color: #1777ff;
            background: linear-gradient(135deg, #1777ff 0%, #0d5fd9 100%);
            color: white;
        }

        .calc-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #1777ff 0%, #0d5fd9 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 17px;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-top: 10px;
            min-height: 48px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .calc-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(23, 119, 255, 0.3);
        }

        .calc-btn:active {
            transform: translateY(0);
            box-shadow: 0 3px 12px rgba(23, 119, 255, 0.2);
        }

        .result-section {
            margin-top: 30px;
            display: none;
        }

        .result-section.show {
            display: block;
        }

        .result-summary {
            background: linear-gradient(135deg, #1777ff 0%, #0d5fd9 100%);
            border-radius: 16px;
            padding: 25px;
            color: white;
            margin-bottom: 25px;
        }

        .result-summary h3 {
            font-size: 16px;
            margin-bottom: 20px;
            text-align: center;
            opacity: 0.9;
        }

        .result-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .result-item {
            background: rgba(255, 255, 255, 0.15);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .result-item .label {
            font-size: 12px;
            opacity: 0.8;
            margin-bottom: 8px;
        }

        .result-item .value {
            font-size: 20px;
            font-weight: 600;
        }

        .result-item .value.small {
            font-size: 16px;
        }

        @media (max-width: 768px) {
            .result-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .result-item {
                padding: 12px;
            }

            .result-item .value {
                font-size: 18px;
            }

            .result-item .value.small {
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .result-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .result-item {
                padding: 10px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                text-align: left;
            }

            .result-item .label {
                margin-bottom: 0;
                font-size: 13px;
            }

            .result-item .value {
                font-size: 16px;
            }

            .result-item .value.small {
                font-size: 14px;
            }
        }

        .schedule-section {
            background: white;
            border-radius: 16px;
            border: 1px solid #e0e8f5;
            overflow: hidden;
        }

        .schedule-header {
            background: #f8faff;
            padding: 15px 20px;
            border-bottom: 1px solid #e0e8f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .schedule-header h4 {
            font-size: 16px;
            color: #333;
        }

        .toggle-schedule {
            background: #1777ff;
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s ease;
            min-height: 40px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .toggle-schedule:hover {
            background: #0d5fd9;
        }

        .toggle-schedule:active {
            background: #0b4ec7;
        }

        .schedule-table-container {
            max-height: 400px;
            overflow-y: auto;
            overflow-x: auto;
            display: none;
            -webkit-overflow-scrolling: touch;
        }

        .schedule-table-container.show {
            display: block;
        }

        .schedule-table {
            width: 100%;
            min-width: 500px;
            border-collapse: collapse;
        }

        .schedule-table th,
        .schedule-table td {
            padding: 12px 15px;
            text-align: center;
            border-bottom: 1px solid #e0e8f5;
        }

        .schedule-table th {
            background: #f8faff;
            font-weight: 500;
            color: #666;
            font-size: 13px;
            position: sticky;
            top: 0;
        }

        .schedule-table td {
            font-size: 14px;
            color: #333;
        }

        .schedule-table tr:hover td {
            background: #f8faff;
        }

        @media (max-width: 768px) {
            .schedule-table th,
            .schedule-table td {
                padding: 10px 12px;
                font-size: 12px;
            }

            .schedule-table {
                min-width: 450px;
            }
        }

        @media (max-width: 480px) {
            .schedule-table th,
            .schedule-table td {
                padding: 8px 10px;
                font-size: 11px;
            }

            .schedule-table {
                min-width: 400px;
            }

            .schedule-header {
                padding: 12px 15px;
            }

            .schedule-header h4 {
                font-size: 14px;
            }
        }

        .content-section {
            margin-bottom: 30px;
        }

        .content-section h3 {
            font-size: 18px;
            color: #333;
            margin-bottom: 15px;
            padding-left: 15px;
            border-left: 4px solid #1777ff;
        }

        .content-section p {
            font-size: 15px;
            color: #666;
            line-height: 2;
            text-align: justify;
            margin-bottom: 15px;
        }

        .method-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 20px 0;
        }

        .method-card {
            background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #e0e8f5;
        }

        .method-card h4 {
            font-size: 15px;
            color: #1777ff;
            margin-bottom: 10px;
        }

        .method-card p {
            font-size: 13px;
            color: #666;
            line-height: 1.8;
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            .method-cards {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .method-card {
                padding: 18px;
            }
        }

        @media (max-width: 480px) {
            .method-card {
                padding: 15px;
                border-radius: 10px;
            }

            .method-card h4 {
                font-size: 14px;
                margin-bottom: 8px;
            }

            .method-card p {
                font-size: 12px;
                line-height: 1.6;
            }
        }

        .formula-box {
            background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
            padding: 20px 25px;
            border-radius: 12px;
            border: 1px solid #b3d4ff;
            margin: 20px 0;
        }

        .formula-box h4 {
            font-size: 15px;
            color: #1777ff;
            margin-bottom: 12px;
        }

        .formula-box p {
            font-size: 14px;
            color: #555;
            margin-bottom: 8px;
            line-height: 1.8;
        }

        .highlight-box {
            background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
            padding: 20px 25px;
            border-radius: 12px;
            border: 1px solid #ffd966;
            margin: 20px 0;
        }

        .highlight-box p {
            margin-bottom: 0;
            color: #b8860b;
            font-size: 14px;
        }

        .footer {
            background: linear-gradient(135deg, #1777ff 0%, #0d5fd9 100%);
            padding: 30px 0;
            text-align: center;
            color: white;
            margin-top: 50px;
        }

        .footer-content {
            padding: 0 20px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: white;
        }

        .copyright {
            font-size: 13px;
            opacity: 0.8;
        }

        .copyright p {
            margin: 5px 0;
        }

        @media (max-width: 768px) {
            .main-content {
                padding: 30px 20px;
                margin: 20px 0;
                border-radius: 16px;
            }

            .logo-text h1 {
                font-size: 22px;
                letter-spacing: 1px;
            }

            .logo-text p {
                font-size: 12px;
            }

            .logo-icon {
                width: 48px;
                height: 48px;
            }

            .header-nav-links {
                display: none;
            }

            .nav-toggle {
                display: block;
            }

            .nav {
                display: block;
                background: white;
                padding: 15px 0;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            }

            .nav-links {
                display: flex;
                justify-content: center;
                gap: 20px;
            }

            .nav-links a {
                font-size: 14px;
                color: #666;
                text-decoration: none;
            }

            .nav-links a:hover,
            .nav-links a.active {
                color: #1777ff;
            }

            .repayment-methods {
                grid-template-columns: 1fr;
            }

            .result-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .method-cards {
                grid-template-columns: 1fr;
            }

            .input-row {
                flex-direction: column;
            }

            .input-row .unit {
                align-self: flex-start;
            }

            .schedule-table {
                font-size: 12px;
            }

            .schedule-table th,
            .schedule-table td {
                padding: 8px 10px;
            }

            .calculator-card {
                padding: 25px 20px;
            }

            .page-title h2 {
                font-size: 24px;
            }

            .page-title {
                margin-bottom: 30px;
            }

            .formula-box {
                padding: 18px 20px;
            }

            .highlight-box {
                padding: 18px 20px;
            }

            .container {
                padding: 0 12px;
            }

            .header {
                padding: 20px 0;
            }

            .footer {
                margin-top: 30px;
            }

            .result-item .value {
                font-size: 18px;
            }

            .result-item .value.small {
                font-size: 15px;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 25px 15px;
                margin: 15px 0;
                border-radius: 14px;
            }

            .calculator-card {
                padding: 20px 15px;
                border-radius: 14px;
            }

            .input-group {
                margin-bottom: 16px;
            }

            .input-group label {
                font-size: 14px;
                margin-bottom: 6px;
            }

            .input-row input, .input-row select {
                padding: 12px 14px;
                font-size: 16px;
            }

            .calc-btn {
                padding: 14px;
                font-size: 16px;
            }

            .logo-text h1 {
                font-size: 18px;
            }

            .logo-text p {
                font-size: 11px;
            }

            .logo-icon {
                width: 40px;
                height: 40px;
                border-radius: 10px;
            }

            .logo {
                gap: 10px;
            }

            .page-title h2 {
                font-size: 20px;
            }

            .page-title {
                margin-bottom: 25px;
            }

            .result-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .result-summary {
                padding: 20px;
            }

            .result-item {
                padding: 12px;
            }

            .result-item .value {
                font-size: 16px;
            }

            .result-item .value.small {
                font-size: 14px;
            }

            .schedule-header {
                padding: 12px 15px;
            }

            .schedule-header h4 {
                font-size: 14px;
            }

            .toggle-schedule {
                padding: 8px 14px;
                font-size: 13px;
            }

            .content-section h3 {
                font-size: 16px;
            }

            .content-section p {
                font-size: 14px;
                line-height: 1.8;
            }

            .method-card {
                padding: 15px;
            }

            .method-card h4 {
                font-size: 14px;
            }

            .method-card p {
                font-size: 12px;
            }

            .formula-box h4 {
                font-size: 14px;
            }

            .formula-box p {
                font-size: 13px;
            }

            .formula-box {
                padding: 15px;
                margin: 15px 0;
            }

            .highlight-box {
                padding: 15px;
                margin: 15px 0;
            }

            .highlight-box p {
                font-size: 13px;
            }

            .calculator-section {
                margin-bottom: 30px;
            }

            .footer-links {
                gap: 12px;
            }

            .footer-links a {
                font-size: 13px;
            }

            .copyright {
                font-size: 12px;
            }

            .nav-menu.show {
                max-height: 400px;
                padding: 10px 0;
            }

            .nav-menu a {
                padding: 14px 20px;
                font-size: 15px;
            }
        }