/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin: 0 15px;
}

.nav-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.nav-right a {
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.login-btn {
    color: #333;
}

.register-btn {
    color: #fff;
    background-color: #1890ff;
    padding: 6px 16px;
    border-radius: 4px;
}

/* 主要内容区样式 */
main {
    margin-top: 60px;
    padding: 40px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* 计算器容器样式 */
.calculator-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

/* 标签页样式 */
.calculator-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #1890ff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
}

/* 输入区域样式 */
.input-section {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 按钮样式 */
.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #40a9ff;
}

/* 结果显示区域样式 */
.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 4px;
    display: none;
}

.result.active {
    display: block;
}

.result h4 {
    margin-bottom: 15px;
    color: #333;
}

.result p {
    margin-bottom: 10px;
    color: #666;
}

.result .highlight {
    color: #1890ff;
    font-weight: 500;
}

/* 使用说明样式 */
.tips-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.tips-container h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
}

.tips-icon {
    margin-right: 10px;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 6px;
}

.tip-icon {
    font-size: 24px;
    margin-right: 15px;
}

.tip-text h4 {
    margin-bottom: 8px;
    color: #333;
}

.tip-text p {
    color: #666;
    font-size: 14px;
}

.tip-note {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f0f9ff;
    border-radius: 6px;
}

.note-icon {
    margin-right: 10px;
}

/* 广告位样式 */
.ad-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.ad-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* 底部版权样式 */
.footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.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;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li {
        margin: 10px 0;
    }

    .calculator-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px;
    }
} 