/* save — 頁面樣式（/save.css） */
body.page-save {
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: var(--bg-main);
  background-image: none;
  min-height: 100vh;
  color: var(--text);
}

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

            /* body bg moved */
        
        /* Main Content */
        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 1.5rem 1rem;
        }
        
        .card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .card-title {
            font-size: 1.75rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }
        
        .money-icon {
            text-align: center;
            font-size: 4rem;
            margin: 1rem 0;
        }
        
        .info-box {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border-left: 4px solid #10b981;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .info-box h3 {
            color: #065f46;
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }
        
        .info-box ul {
            list-style: none;
            padding-left: 0;
        }
        
        .info-box li {
            padding: 0.5rem 0;
            padding-left: 1.5rem;
            position: relative;
            line-height: 1.6;
        }
        
        .info-box li:before {
            content: "💰";
            position: absolute;
            left: 0;
            font-weight: bold;
        }
        
        .knowledge-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 2px solid #f59e0b;
        }
        
        .knowledge-box h4 {
            color: #92400e;
            font-size: 1.125rem;
            margin-bottom: 0.75rem;
        }
        
        .knowledge-box p {
            color: #451a03;
            line-height: 1.8;
            margin: 0.75rem 0;
        }
        
        .knowledge-box strong {
            color: #78350f;
        }
        
        .input-section {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .input-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .input-group {
            margin: 0.75rem 0;
        }
        
        .input-label {
            font-size: 1rem;
            font-weight: 600;
            color: #065f46;
            margin-bottom: 0.5rem;
            display: block;
        }
        
        .input-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .input-field {
            flex: 1;
            padding: 0.75rem 1rem;
            font-size: 1.125rem;
            border: 2px solid #10b981;
            border-radius: 0.5rem;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #059669;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }
        
        .input-select {
            flex: 1;
            padding: 0.75rem 1rem;
            font-size: 1.125rem;
            border: 2px solid #10b981;
            border-radius: 0.5rem;
            background: white;
            cursor: pointer;
            font-weight: 600;
        }
        
        .btn-calculate {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            border: none;
            padding: 1.25rem 2.5rem;
            font-size: 1.25rem;
            font-weight: bold;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.2);
        }
        
        .result-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 3px solid #f59e0b;
            border-radius: 0.75rem;
            padding: 2rem;
            margin: 1.5rem 0;
            text-align: center;
        }
        
        .result-label {
            font-size: 1.25rem;
            font-weight: 600;
            color: #92400e;
            margin-bottom: 1rem;
        }
        
        .result-value {
            font-size: 2.5rem;
            font-weight: bold;
            color: #dc2626;
        }
        
        .results-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .results-table th,
        .results-table td {
            padding: 0.875rem;
            text-align: center;
            border: 1px solid #e5e7eb;
        }
        
        .results-table th {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            font-weight: 600;
        }
        
        .results-table tr:nth-child(even) {
            background: #f0fdf4;
        }
        
        .results-table tr:hover {
            background: #d1fae5;
        }
        
        .tip-box {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border-left: 4px solid #3b82f6;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .tip-box h4 {
            color: #1e40af;
            font-size: 1.125rem;
            margin-bottom: 0.75rem;
        }
        
        .tip-box p {
            color: #1e3a8a;
            line-height: 1.8;
            margin: 0.5rem 0;
        }
        
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .comparison-card {
            background: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            border-left: 4px solid #10b981;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .comparison-card h4 {
            color: #065f46;
            font-size: 1.125rem;
            margin-bottom: 0.75rem;
        }
        
        .comparison-card p {
            color: #064e3b;
            line-height: 1.6;
        }
        
            .hero {
            text-align: center;
            color: white;
            margin-bottom: 3rem;
        }
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        

        .calculator-card {
            background: #eae6dd;
            border-radius: 15px;
            padding: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .calculator-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }
.calculator-card a {
    text-decoration: none; /* 去除底線 */
    font-weight: bold;     /* 粗體 */
    color: #222;           /* 顏色 #222 */
}
   .calculator-card h3 {
            color: #222;
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        .calculator-card p {
            color: #666;
            line-height: 1;
        }

        .icon {
            font-size: 2rem;
            margin-bottom: 0rem;
        }
              /* Mobile Responsive */
        @media (max-width: 767px) {
            .card {
                padding: 1rem;
            }
            
            .card-title {
                font-size: 1.5rem;
            }
            
            .money-icon {
                font-size: 3rem;
            }
            
            .result-value {
                font-size: 2rem;
            }
            
            .results-table {
                font-size: 0.875rem;
            }
            
            .results-table th,
            .results-table td {
                padding: 0.5rem 0.25rem;
            }
        }
        
        @media (min-width: 768px) {
            .desktop-nav {
                display: flex;
            }
            
            .menu-btn {
                display: none;
            }
            
            .container {
                padding: 2.5rem 1.5rem;
            }
            
            .input-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .comparison-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
