* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #2c3e50;
    --light-gray: #f5f7fa;
    --border-color: #eee;
    --shadow-color: rgba(0,0,0,0.1);
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: clamp(15px, 4vw, 30px);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.section {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 5px 15px var(--shadow-color);
}

.question {
    margin-bottom: 20px;
}

.question:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
}

select, input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

select:focus, input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

button:active {
    transform: translateY(0);
}

#result {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    text-align: center;
    display: none;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.result-value {
    font-size: clamp(28px, 6vw, 36px);
    color: #e74c3c;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.result-details {
    margin-top: 20px;
    color: #666;
    font-size: 15px;
    text-align: left;
}

.result-details p {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--light-gray);
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease-in-out;
}

.rank-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    border-radius: 8px;
    display: none;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.share-button {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.share-button:hover {
    background: #40a9ff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .section {
        padding: 15px;
    }

    .share-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .share-button {
        max-width: 100%;
        padding: 10px 20px;
    }

    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    label {
        font-size: 14px;
    }

    select, input[type="number"] {
        padding: 10px;
        font-size: 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    }

    .container {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .section {
        background: #34495e;
        border-color: #456789;
    }

    select, input[type="number"] {
        background: #2c3e50;
        color: #ecf0f1;
        border-color: #456789;
    }

    label {
        color: #ecf0f1;
    }

    #result {
        background: #34495e;
    }

    .result-details {
        color: #bdc3c7;
    }

    .achievement {
        background: #2c3e50;
        border-left-color: var(--secondary-color);
    }
} 

.section-group {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-group.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
} 

/* 广告容器样式 */
.ad-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.ad-content {
    background: white;
    padding: clamp(15px, 4vw, 30px);
    border-radius: 15px;
    text-align: center;
    color: #666;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 底部版权样式 */
.footer {
    background: white;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #666;
}

.footer-content p {
    margin: 5px 0;
}

.footer-content a {
    color: #666;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-right {
        display: none;
    }
} 

/* 添加更多工具按钮样式 */
.more-tools {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.more-tools-btn {
    display: inline-block;
    width: 100%;
    padding: clamp(15px, 4vw, 30px);
    background: #1890ff;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-size: 16px;
    transition: background-color 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.more-tools-btn:hover {
    background: #40a9ff;
}

@media (max-width: 768px) {
    .more-tools-btn {
        width: 100%;
        padding: 12px 0;
    }
} 

/* 移动端适配 */
@media (max-width: 768px) {
    .ad-container {
        padding: 10px;  /* 与主容器在移动端的padding保持一致 */
    }
} 

/* 添加微信分享弹窗样式 */
.wechat-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 320px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.close-btn:hover {
    color: #666;
}

.modal-body {
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    color: #666;
}

.qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
}

.qrcode img {
    width: 100%;
    height: 100%;
}

.modal-body p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

/* 移动端微信提示 */
.wechat-tip {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .wechat-tip {
        display: block;
    }
    
    .qrcode {
        display: none;
    }
} 

/* 更新分享卡片样式 */
.share-card {
    display: none;
    width: 750px;
    height: 1334px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    position: fixed;
    top: -9999px;
    left: -9999px;
    padding: 40px;
    border-radius: 30px;
}

.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.worth-label {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
}

.worth-value {
    font-size: 48px;
    color: #f5576c;
    font-weight: bold;
    margin-bottom: 20px;
}

.card-rank {
    font-size: 20px;
    color: #fff;
    background: #ffa41b;
    padding: 10px 30px;
    border-radius: 25px;
    display: inline-block;
}

.card-details {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.detail-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item .label {
    font-size: 18px;
    color: #666;
}

.detail-item .value {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.card-footer {
    text-align: center;
    margin-top: auto;
}

.card-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-tip {
    font-size: 18px;
    color: #666;
}
 