/**
 * age.0123456789.tw — 年齡計算（/age.css）
 */
.page-age { min-height: 100vh; }

/* Main Content */
.page-age .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-age .age-panel {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.page-age .age-panel .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-age .input-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-age .section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #92400e;
    margin-bottom: 1rem;
}

.page-age .input-group {
    margin-bottom: 1.25rem;
}

.page-age .input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.page-age .input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.page-age .input-group input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.page-age .input-group input:hover {
    border-color: #9ca3af;
}

.page-age .button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-age .btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.page-age .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-age .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

.page-age .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.page-age .btn-secondary:hover {
    background: #e5e7eb;
}

.page-age .age-display {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-left: 4px solid #22c55e;
}

.page-age .age-number {
    font-size: 3rem;
    font-weight: bold;
    color: #166534;
    margin-bottom: 0.5rem;
}

.page-age .age-label {
    font-size: 1.125rem;
    color: #15803d;
    font-weight: 600;
}

.page-age .results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-age .result-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    border-left: 4px solid #0ea5e9;
}

.page-age .result-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #075985;
    margin-bottom: 0.5rem;
}

.page-age .result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0369a1;
    font-family: 'Courier New', monospace;
}

.page-age .birthday-countdown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.page-age .birthday-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #92400e;
    margin-bottom: 1rem;
    text-align: center;
}

.page-age .countdown-display {
    font-size: 1.25rem;
    font-weight: bold;
    color: #78350f;
    text-align: center;
}

.page-age .info-box {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-age .info-box h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #075985;
    margin-bottom: 1rem;
}

.page-age .info-box p {
    color: #0c4a6e;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.page-age .info-box ul {
    list-style: none;
    padding-left: 0;
}

.page-age .info-box li {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #0c4a6e;
    line-height: 1.6;
}

.page-age .info-box li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
}

.page-age .info-box strong {
    color: #075985;
}

.page-age .age-hero {
    text-align: center;
    padding: 2rem 1rem;
    color: white;
}

.hero img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin: 0 10px;
}

.hero a {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-age .age-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;
}

.page-age #birthDate {
  width: 300px;
  background-color: #A80000;
  color: white;
  padding: 8px 12px;
  border: 1px solid #cc0000;
  border-radius: 4px;
  font-size: 18px;
  box-sizing: border-box;
}

.page-age #birthDate::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
/* Responsive Design */
@media (max-width: 640px) {
    .page-age .age-panel {
        padding: 1.5rem 1rem;
    }
    
    .page-age .age-panel .card-title {
        font-size: 1.25rem;
    }
    
    .page-age .age-number {
        font-size: 2rem;
    }
    
    .page-age .result-value {
        font-size: 1.125rem;
    }
    
    .page-age .input-section {
        padding: 1rem;
    }
    
    .page-age .button-group {
        flex-direction: column;
    }
    
    .page-age .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .page-age .container {
        padding: 2.5rem 1.5rem;
    }

    .page-age .age-panel {
        padding: 2.5rem 2rem;
    }

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