/* 全局样式 */
:root {
    --teal: #20c997;
    --dark: #2d3436;
    --light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    padding-top: 180px;
    padding-bottom: 40px;
    background-color: var(--light);
    color: var(--dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem;
    background: var(--light);
    border-radius: 0.75rem;
    margin: 0 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-item h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--teal);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--gray);
}

/* 内容区域样式 */
.content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 2rem;
}

.intro-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intro-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    padding: 0;
}

.info-btn {
    background-color: var(--teal);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-btn:hover {
    transform: scale(1.1);
    background-color: #1ba87e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-btn svg {
    width: 1.2em;
    height: 1.2em;
}

/* 添加提示文本 */
.info-btn::after {
    content: "Click for more info";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.info-btn:hover::after {
    opacity: 1;
}

.info-content {
    background: var(--light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.info-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.warning {
    color: #dc3545;
    font-weight: 600;
    margin-top: 1rem;
}

/* 问题列表样式 */
.questions-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.question-list {
    margin-bottom: 2rem;
}

.question-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light);
    border-radius: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.question-item:hover {
    transform: translateX(5px);
    background: #f1f3f5;
}

.question-number {
    width: 28px;
    height: 28px;
    background-color: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.form-check {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 1rem;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.form-check-label {
    flex: 1;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem 0;
    margin: 0;
}

/* 添加点击效果 */
.question-item:active {
    transform: translateX(2px);
    background: #e9ecef;
}

/* 确保复选框在点击时不会失去焦点 */
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(32, 201, 151, 0.25);
}

/* 按钮样式 */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--teal);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #1ba87e;
    transform: translateY(-2px);
}

/* 结果卡片样式 */
.result-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: none;
}

.progress {
    height: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

/* 导航按钮样式 */
.nav-pills {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.nav-pills .nav-link {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    color: var(--teal);
    background-color: rgba(32, 201, 151, 0.1);
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-pills .nav-link.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--teal);
    background-color: rgba(32, 201, 151, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 160px;
    }

    .content-wrapper {
        margin-top: 1.5rem;
    }

    .intro-card {
        padding: 2rem;
    }

    .intro-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .intro-title {
        font-size: 1.5rem;
    }

    .info-content {
        padding: 1rem;
    }

    .questions-card {
        padding: 1.5rem;
    }

    .question-item {
        padding: 0.75rem;
    }

    .form-check-label {
        font-size: 0.95rem;
    }

    .info-btn::after {
        bottom: -20px;
        font-size: 0.7rem;
    }

    .nav-pills {
        flex-wrap: wrap;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 140px;
    }

    .content-wrapper {
        margin-top: 1rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.25rem;
    }

    .intro-card {
        padding: 1.5rem;
    }
}

/* 页脚样式 */
footer {
    padding: 2rem 0;
    color: var(--gray);
    font-size: 0.875rem;
}

/* 语言选择器样式 */
.language-selector {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.language-selector select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

.language-selector select:hover {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.language-selector select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* 确保导航栏容器有相对定位 */
.navbar .container {
    position: relative;
} 