/* ============================================
   Military Life Tools - v2.css
   主样式表 v2 - 修复布局问题和优化响应式设计
   ============================================ */

:root {
    --primary-color: #1a3a5c;
    --secondary-color: #c9a227;
    --accent-color: #2c5f8a;
    --gold-color: #c9a227;
    --text-color: #333333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
header {
    background-color: #1a3a5c;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-icon {
    display: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* ============================================
   Main Content
   ============================================ */
.main {
    min-height: 60vh;
    width: 100%;
    overflow-x: hidden;
}

.main > * {
    width: 100%;
}

.tool-section {
    padding: 2rem 0;
    width: 100%;
}

/* ============================================
   Calculator Section
   ============================================ */
.calculator {
    max-width: 800px;
    margin: -2rem auto 2rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
}

.input-group {
    text-align: center;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a3a5c;
}

.input-group input[type="text"] {
    padding: 1.2rem 2rem;
    font-size: 1.8rem;
    border: 3px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 450px;
    color: #333;
    text-align: center;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #2c5f8a;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.2);
}

.input-group input[type="date"]:focus {
    outline: none;
    border-color: #2c5f8a;
}

.input-group button {
    background-color: #c9a227;
    color: #1a3a5c;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.date-format-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 0.9rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
    min-height: 1.2rem;
}

/* ============================================
   Countdown Display
   ============================================ */
.countdown-boxes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.countdown-box {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    min-width: 120px;
    text-align: center;
}

.countdown-box .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.countdown-box .label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.message {
    text-align: center;
    font-size: 1.1rem;
    color: #2c5f8a;
    font-weight: 500;
    margin-top: 1rem;
}

/* ============================================
   Milestones
   ============================================ */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 8px;
    border-left: 4px solid #2c5f8a;
}

.milestone-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.milestone-content {
    flex: 1;
}

.milestone-content h3 {
    color: #1a3a5c;
    margin-bottom: 0.3rem;
}

.milestone-content p {
    font-size: 0.95rem;
    color: #666;
}

.milestone-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.milestone-status.pending {
    background: #ffc107;
    color: #333;
}

.milestone-status.completed {
    background: #28a745;
    color: #ffffff;
}

.milestone-status.upcoming {
    background: #2c5f8a;
    color: #ffffff;
}

/* ============================================
   Info Content
   ============================================ */
.info-content,
.content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-content h2,
.content-section h2 {
    color: #1a3a5c;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.info-content h2:first-child,
.content-section h2:first-child {
    margin-top: 0;
}

.info-content h3,
.content-section h3 {
    color: #2c5f8a;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.info-content p,
.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.info-content ul,
.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.info-content li,
.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ============================================
   Tool Section Components
   ============================================ */
.tool-title {
    font-size: 2.5rem;
    color: #1a3a5c;
    margin-bottom: 0.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
}

/* ============================================
   Time Converter
   ============================================ */
.converter-card {
    text-align: center;
}

.time-display {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.time-label {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
    margin-bottom: 0.5rem;
}

.time-value {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.time-format {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    display: block;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.converter-panel h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.converter-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}

.divider-text {
    background: #f5f7fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    color: #666;
}

.time-input-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.time-input-group select {
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    min-width: 60px;
    flex: 1;
    max-width: 90px;
}

.time-input-group select:focus {
    outline: none;
    border-color: #2c5f8a;
}

.time-separator {
    font-size: 2rem;
    font-weight: bold;
    color: #1a3a5c;
    display: flex;
    align-items: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #c9a227;
    color: #1a3a5c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: #2c5f8a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1a3a5c;
}

/* ============================================
   Results
   ============================================ */
.result-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a3a5c;
    font-family: 'Courier New', monospace;
}

/* ============================================
   Quick Reference
   ============================================ */
.quick-converts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.quick-converts h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.reference-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: #f5f7fa;
    border-radius: 6px;
}

.ref-military {
    font-weight: bold;
    color: #1a3a5c;
    font-family: 'Courier New', monospace;
}

.ref-standard {
    color: #666;
}

/* ============================================
   Embed Section
   ============================================ */
.embed-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: left;
}

.embed-section h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.embed-code-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.embed-code {
    flex: 1;
    padding: 1rem;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    min-width: 0;
}

.copy-btn {
    white-space: nowrap;
}

/* ============================================
   Share Section
   ============================================ */
.share-section {
    margin-top: 2rem;
    text-align: center;
}

.share-section h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.share-twitter {
    background: #000000;
    color: #ffffff;
}

.share-reddit {
    background: #ff4500;
    color: #ffffff;
}

.share-copy {
    background: #2c5f8a;
    color: #ffffff;
}

/* ============================================
   Conversion Table
   ============================================ */
.conversion-table {
    margin: 2rem 0;
}

.conversion-table h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 400px;
}

.time-table th,
.time-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.time-table th {
    background: #1a3a5c;
    color: #ffffff;
    font-weight: 600;
}

.time-table tr:hover {
    background: #f5f7fa;
}

/* ============================================
   Form Elements
   ============================================ */
.select-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.select-full:focus {
    outline: none;
    border-color: #2c5f8a;
}

.condition-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.condition-row .condition-name {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.85rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
    background: #ffffff;
    cursor: pointer;
}
.condition-row .condition-rating {
    flex: 0 0 110px;
    padding: 0.85rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-height: 44px;
    background: #ffffff;
    cursor: pointer;
}
.condition-row .btn-remove {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #c00;
}
.condition-row .btn-remove:hover { background: #fff3f3; border-color: #c00; }
@media (max-width: 480px) {
    .condition-row { flex-wrap: wrap; }
    .condition-row .condition-name { flex: 1 1 100%; }
    .condition-row .condition-rating { flex: 1 1 auto; }
    .condition-row .btn-remove { margin-left: auto; }
}

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    min-width: 0;
}

.input-field:focus {
    outline: none;
    border-color: #2c5f8a;
}

.select-small {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    min-width: 90px;
    max-width: 120px;
    flex-shrink: 1;
}

.full-width {
    width: 100%;
}

/* ============================================
   Size Result
   ============================================ */
.size-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border-radius: 10px;
    color: #ffffff;
}

.size-result.hidden {
    display: none;
}

.result-header h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.size-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.size-main {
    text-align: center;
}

.size-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.size-value {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.size-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.detail-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================
   Size Charts
   ============================================ */
.size-charts {
    margin-top: 2rem;
}

.size-charts h3 {
    color: #1a3a5c;
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    margin-bottom: 1.5rem;
}

.size-table th,
.size-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.size-table th {
    background: #1a3a5c;
    color: #ffffff;
    font-weight: 600;
}

.size-table tr:hover {
    background: #f5f7fa;
}

/* ============================================
   BAH Calculator
   ============================================ */
.bah-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a3a5c;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.suggestions.hidden {
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f5f7fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.bah-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border-radius: 10px;
    color: #ffffff;
}

.bah-result.hidden {
    display: none;
}

.bah-result .result-header {
    margin-bottom: 1.5rem;
}

.bah-result .result-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-location {
    opacity: 0.9;
    font-size: 1rem;
}

.rate-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.rate-main {
    text-align: center;
}

.rate-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.rate-value {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
}

.rate-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.rate-item {
    text-align: center;
}

.rate-item-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.rate-item-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================
   Pay Calculator
   ============================================ */
.pay-form {
    margin-bottom: 2rem;
}

.pay-result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    border-radius: 10px;
    color: #ffffff;
}

.pay-result.hidden {
    display: none;
}

.pay-result .result-header {
    margin-bottom: 1.5rem;
}

.pay-result .result-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-rank {
    opacity: 0.9;
    font-size: 1rem;
}

.pay-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pay-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.pay-item.main-pay {
    background: rgba(255, 255, 255, 0.15);
}

.pay-item.allowance {
    background: rgba(255, 255, 255, 0.1);
}

.pay-item.total {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.pay-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.pay-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.pay-note {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

/* Constrain the FAQ section heading to match (uses :has() — Chrome 105+, Safari 15.4+, Firefox 121+) */
h2:has(+ .faq-item) {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #1a3a5c;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    margin-bottom: 0.5rem;
}

/* ============================================
   Quick Start Cards
   ============================================ */
.quick-start {
    max-width: 1100px;
    margin: 1.5rem auto 2rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f3d5a 0%, #0b2340 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.quick-start h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.quick-start p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.quick-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.quick-card {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0b2340;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #3f5162;
    font-weight: 500;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* ============================================
   Amazon Picks - Military Tactical Design
   ============================================ */
.amazon-picks {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.amazon-picks-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.amazon-picks-header h2 {
    color: #1a3a5c;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 军人专属验证标签 */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #2d5016; /* OD Green */
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.verified-badge::before {
    content: '✓';
    font-size: 0.8rem;
}

.amazon-picks-header p {
    color: #555;
    font-size: 0.95rem;
}

.amazon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.amazon-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.amazon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2d5016; /* OD Green hover */
}

/* 军人专属钩子标签 */
.military-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1a3a5c;
    color: #c9a227;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amazon-card-img {
    width: 60px;
    height: 60px;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.amazon-card-title {
    color: #1a3a5c;
    font-size: 0.95rem;
    margin: 0.8rem 0;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1.3;
}

/* 军人专属描述文案 */
.amazon-card-desc {
    color: #666;
    font-size: 0.8rem;
    margin: 0.3rem 0 0.5rem;
    font-style: italic;
}

.amazon-card-price {
    color: #2d5016; /* OD Green instead of gold */
    font-weight: 700;
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* 战术风格 CTA 按钮 */
.amazon-card-cta {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #2d5016; /* OD Green */
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amazon-card-cta:hover {
    background: #1a3a5c; /* Navy blue on hover */
    transform: translateY(-1px);
}

.amazon-picks-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Tablet 适配 */
@media (max-width: 768px) {
    .amazon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .amazon-card {
        padding: 1rem;
    }
    
    .amazon-card-title {
        font-size: 0.85rem;
    }
    
    .amazon-card-cta {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
}

/* Mobile 小屏幕 */
@media (max-width: 480px) {
    .amazon-grid {
        grid-template-columns: 1fr;
    }
    
    .amazon-card-img {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   Ad Slots
   ============================================ */
.ad-slot {
    text-align: center;
    padding: 1rem 0;
    background: #f8f9fa;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.ad-top {
    border-bottom: 1px solid #e9ecef;
}

.ad-mid {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 2rem 0;
}

.ad-bottom {
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* ============================================
   Blog Styles
   ============================================ */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Blog highlight box with fixed colors */
.highlight-box {
    background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 2px solid rgba(201, 162, 39, 0.4);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.15);
}

.highlight-box h3 {
    color: #c9a227;
    margin-top: 0;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-box p {
    color: #ffffff;
}

/* Blog comparison table */
.card-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.card-comparison th {
    background: #1a3a5c;
    color: #ffffff;
    padding: 1rem;
    text-align: left;
}

.card-comparison td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
}

.card-comparison tr:hover {
    background: #f5f7fa;
}

/* Blog pros/cons */
.pro-con {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.pros, .cons {
    padding: 1.2rem;
    border-radius: 8px;
}

.pros {
    background: #f0fff4;
    border-left: 4px solid #28a745;
}

.cons {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.pros h4, .cons h4 {
    margin-top: 0;
}

/* Blog FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #1a3a5c;
    margin-bottom: 0.5rem;
}

/* Blog related posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.related-posts h3 {
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.related-list {
    list-style: none;
    padding: 0;
}

.related-list li {
    margin-bottom: 0.8rem;
}

.related-list a {
    color: #2c5f8a;
    text-decoration: none;
    font-weight: 500;
}

.related-list a:hover {
    text-decoration: underline;
}

/* Blog CTA button */
.cta-button {
    display: inline-block;
    background: #c9a227;
    color: #1a3a5c;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* ============================================
   Hidden utility class
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   Footer
   ============================================ */
.footer,
footer {
    background-color: #1a3a5c;
    color: #ffffff;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #c9a227;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #c9a227;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================
   Mobile Navigation Toggle
   ============================================ */
@media (max-width: 1024px) {
    .nav-toggle-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a3a5c;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0.5rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-toggle-checkbox:checked + .nav-toggle-icon + .nav-links {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .calculator {
        margin: -1.5rem 1rem 2rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
    }

    .tool-title {
        font-size: 1.8rem;
    }

    .tool-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 1.2rem;
        margin: 0 0 1.5rem;
    }

    .content-section,
    .info-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    /* Converter Grid Mobile */
    .converter-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .converter-divider {
        padding: 0.5rem 0;
    }

    /* Countdown Mobile */
    .countdown-boxes {
        gap: 0.75rem;
    }

    .countdown-box {
        min-width: 80px;
        padding: 1rem;
    }

    .countdown-box .number {
        font-size: 2rem;
    }

    .countdown-box .label {
        font-size: 0.75rem;
    }

    /* Milestone Mobile */
    .milestone {
        flex-direction: column;
        text-align: center;
    }

    .milestone-icon {
        margin-bottom: 0.5rem;
    }

    /* Size/Pay Result Mobile */
    .size-display,
    .rate-display {
        flex-direction: column;
        text-align: center;
    }

    .size-details,
    .rate-details {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pay-breakdown {
        grid-template-columns: 1fr;
    }

    /* Embed Mobile */
    .embed-code-wrapper {
        flex-direction: column;
    }

    .embed-code {
        font-size: 0.75rem;
        width: 100%;
    }

    /* Time Input Mobile */
    .time-input-group {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .time-input-group select {
        width: 100% !important;
        max-width: 200px !important;
        flex: unset !important;
    }

    .time-separator {
        display: none !important;
    }

    /* Form Elements Mobile */
    .input-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .input-field,
    .select-small {
        width: 100% !important;
        max-width: 200px !important;
    }

    /* Reference Grid Mobile */
    .reference-grid {
        grid-template-columns: 1fr;
    }

    /* Quick Start Mobile */
    .quick-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Amazon Grid Mobile */
    .amazon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Result Values Mobile */
    .result-value,
    .rate-value,
    .size-value {
        font-size: 2rem;
    }

    .time-value {
        font-size: 2rem;
    }

    /* Ad Slots Mobile */
    .ad-slot {
        min-height: 50px;
        padding: 0.5rem 0;
    }

    /* Navigation Mobile */
    header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .calculator {
        padding: 1rem;
        margin: -1rem 0.5rem 1.5rem;
    }

    .input-group input[type="text"] {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    .input-group button {
        width: 100%;
    }

    .countdown-box {
        min-width: 70px;
        padding: 0.8rem;
    }

    .countdown-box .number {
        font-size: 1.8rem;
    }

    .quick-card-grid {
        grid-template-columns: 1fr;
    }

    .amazon-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 100%;
        max-width: 200px;
    }
}
.adsterra-desktop-only { display: block; }
.adsterra-mobile-only { display: none; }
@media (max-width: 768px) {
  .adsterra-desktop-only { display: none !important; }
  .adsterra-mobile-only { display: block !important; }
  body { padding-bottom: 56px; }
}
/* Footer container override - remove container padding so footer matches header width (1200px) */
.footer > .container { max-width: 1200px; padding: 0; }
.footer > .container .footer-content { width: 100%; max-width: 100%; }

