/* V7 - The Ultimate Product Manager's "Zero-Click" Redesign */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --primary-color: #4A90E2;
    --primary-color-dark: #3A7BC8;
    --background-color: #F6F9FC;
    --text-color: #333D4F;
    --light-text-color: #8A94A6;
    --card-background: #FFFFFF;
    --border-color: #EAEFF5;
    --success-color: #FFA726;
    --border-radius: 20px;
    --shadow: 0 10px 30px rgba(74, 144, 226, 0.1);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 20px;
    overflow-x: hidden;
}

.header { text-align: center; margin-bottom: 30px; }
.logo { width: 60px; height: 60px; margin-bottom: 16px; }
.title { font-size: 28px; font-weight: 700; margin: 0; }
.subtitle { font-size: 15px; color: var(--light-text-color); margin-top: 4px; max-width: 300px; margin-left: auto; margin-right: auto; }

/* 核心计算器卡片 */
.calculator-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.card-header { display: flex; align-items: center; margin-bottom: 20px; }
.card-icon { font-size: 24px; margin-right: 12px; }
h2 { font-size: 18px; font-weight: 500; margin: 0; }

.date-selector { display: flex; gap: 15px; margin-bottom: 25px; }
.select-wrapper { flex: 1; position: relative; }
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    appearance: none; -webkit-appearance: none;
    background-color: #F8F9FB;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15); outline: none; }
.select-wrapper::after { content: '⌄'; color: var(--light-text-color); position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}
.calculate-btn:hover { transform: translateY(-2px); }
.btn-icon { margin-right: 8px; }

/* 结果展示 */
.result-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FFF9E6, #FFEFCD);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid var(--success-color);
    /* 动画效果 */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.7s ease, opacity 0.5s ease, padding 0.5s ease;
}
.result-section.visible {
    max-height: 500px; /* 一个足够大的值 */
    opacity: 1;
    padding-top: 30px;
    padding-bottom: 30px;
}
.result-title { font-size: 16px; font-weight: 500; margin: 0 0 10px 0; }
.total-amount { font-size: 48px; font-weight: 700; color: var(--success-color); margin: 0; line-height: 1.2; }
.details-wrapper { margin: 20px 0; }
.details-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.5); border-radius: 8px; overflow: hidden; }
.details-table th, .details-table td { padding: 10px; text-align: center; }
.details-table th { background: rgba(255, 167, 38, 0.1); font-weight: 500; font-size: 14px; }
.details-table td { font-size: 15px; }
.details-table td:last-child { font-weight: 700; }

.share-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.share-btn:hover { background-color: #FB8C00; }

/* 价值模块 */
.value-modules.hidden { display: none; }
.card-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-link:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.card-link-content { flex: 1; }
.card-link-content h3 { font-size: 16px; font-weight: 500; margin: 0 0 2px 0; }
.card-link-content p { font-size: 13px; color: var(--light-text-color); margin: 0; }
.card-link-arrow { font-size: 22px; color: var(--light-text-color); transition: transform 0.2s; }
.card-link:hover .card-link-arrow { transform: translateX(5px); }

/* 底部 */
.footer { text-align: center; padding: 20px 0; border-top: 1px solid var(--border-color); }
.policy-summary { font-size: 13px; color: var(--light-text-color); margin-bottom: 10px; }
.policy-summary strong { color: var(--text-color); }
.disclaimer { font-size: 12px; color: #B0B6BF; }
.visit-count { 
    font-size: 12px; 
    color: #B0B6BF; 
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
#visit-counter {
    font-weight: 500;
    color: var(--primary-color);
}
