/* 全局样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --border-radius: 1rem;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
 .navbar
{
    padding:0.5em 1em;
}
.btn-outline-primary:hover
{
    color:#fff !important;
}

.navbar-light .navbar-brand
{
    font-size:1.6em;
    color:#000;
}
.navbar-light .navbar-toggler
{
    border:none !important;
}
/* 卡片样式 */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* 题目卡片样式 */
.question-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

.question-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 10px;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
}

/* 选项样式 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 1rem;
}

.option-item {
    position: relative;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-item label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: var(--light-bg);
    border: 2px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    height: 100%;
    min-height: 60px;
    word-break: break-word;
}

.option-item input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.option-item label:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

/* 页面容器 */
.page-questions {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-questions.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 进度条 */
.progress {
    background: rgba(0,0,0,0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
}

/* 结果页面样式 */
.border-right-lg {
    border-right: 1px solid #dee2e6;
}

.dimension-block {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* 指示点样式 */
.screen-indicators {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 轮播控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px;
}

@media (max-width:1440px)
{
    .navbar-brand
    {
        font-size:1.5em;
    }
}

@media (max-width:1366px)
{
    .navbar-brand
    {
        font-size:1.35em;
    }
}
/* 响应式调整 */
@media (max-width: 576px) {
    .navbar-brand
    {
        font-size:1.25em;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .question-text {
        font-size: 13px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-item label {
        min-height: 50px;
        font-size: 0.85rem;
        padding: 0.5rem 0.25rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-1 {
        font-size: 3.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .border-right-lg {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .options-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 993px) {
    .options-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .screen-indicators,
    .badge,
    .fa-copy {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .carousel-item {
        display: block !important;
        page-break-after: always;
    }
    
    .border-right-lg {
        border-right: none;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Toast 提示 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    min-width: 200px;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.custom-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.custom-toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.custom-toast.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.custom-toast.info {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 圆圈答案布局样式 */
.circle-answers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.05), rgba(108, 117, 125, 0.05), rgba(102, 51, 153, 0.05));
    border-radius: 60px;
    position: relative;
}

.answer-label {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.answer-label.left {
    color: #28a745;
}

.answer-label.right {
    color: #6f42c1;
}

.circles-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.circle-option {
    position: relative;
    display: inline-block;
}

.circle-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    font-size: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 圆圈大小变化 */
.circle-option[data-size="1"] .circle {
    width: 50px;
    height: 50px;
}

.circle-option[data-size="2"] .circle {
    width: 42px;
    height: 42px;
}

.circle-option[data-size="3"] .circle {
    width: 34px;
    height: 34px;
}

.circle-option[data-size="4"] .circle {
    width: 26px;
    height: 26px;
}

.circle-option[data-size="5"] .circle {
    width: 34px;
    height: 34px;
}

.circle-option[data-size="6"] .circle {
    width: 42px;
    height: 42px;
}

.circle-option[data-size="7"] .circle {
    width: 50px;
    height: 50px;
}

/* 左侧绿色圆圈 */
.circle-option[data-side="left"] .circle {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.circle-option[data-side="left"] .circle:hover {
    background: #28a745;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* 中间灰色圆圈 */
.circle-option[data-side="center"] .circle {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.circle-option[data-side="center"] .circle:hover {
    background: #6c757d;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 右侧紫色圆圈 */
.circle-option[data-side="right"] .circle {
    border-color: #6f42c1;
    background: rgba(111, 66, 193, 0.05);
}

.circle-option[data-side="right"] .circle:hover {
    background: #6f42c1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

/* 选中状态 */
.circle-option input[type="radio"]:checked + .circle {
    background: currentColor;
    border-color: transparent;
    transform: scale(1.15);
}

.circle-option[data-side="left"] input[type="radio"]:checked + .circle {
    background: #28a745;
}

.circle-option[data-side="center"] input[type="radio"]:checked + .circle {
    background: #6c757d;
}

.circle-option[data-side="right"] input[type="radio"]:checked + .circle {
    background: #6f42c1;
}

/* 勾选图标 */
.circle-option input[type="radio"]:checked + .circle::after {
    content: '✓';
    color: white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* 工具提示 - 显示答案文字 */
.circle-option .answer-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

.circle-option .answer-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.circle-option:hover .answer-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* 当前题目高亮 */
.question-card.current {
    border-left: 4px solid #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

/* 自动滚动指示器 */
.scroll-indicator {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    border: 2px solid #667eea;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: #667eea;
    font-size: 1.2rem;
}

.scroll-indicator span {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

label
{
    margin-bottom:0px;
}
.result-title
{
    color:#6f42c1 ;
}
.h1-title
{
    color:#fff;
}


/* 维度展示优化 */
/* 维度展示优化 */
.dimension-block {
    background: white;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.dimension-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}

.dimension-block h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 进度条美化 */
.progress {
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

/* 维度标签样式 */
.dimension-block .d-flex {
    margin-top: 8px;
    font-size: 0.95rem;
    padding: 0 4px;
}

.dimension-block .d-flex span:first-child {
    font-weight: 600;
    opacity: 0.9;
}

.dimension-block .d-flex span:last-child {
    color: #6c757d;
    font-weight: 400;
}

/* 说明卡片 */
.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid rgba(0,0,0,0.03);
}

/* 结果类型展示 */
.display-1 {
    font-size: 5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge-pill {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.progress-bar
{
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}
.lead
{
    color:#fff;
}
.p-lg-5
{
    padding:2rem !important;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .dimension-block {
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    .circle-answers-container
    {
        gap:10px;
    }
    .dimension-block h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .progress {
        height: 20px !important;
    }
    
    .progress-bar {
        font-size: 0.75rem;
    }
    
    .dimension-block .d-flex {
        font-size: 0.85rem;
    }
    
    .display-1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .dimension-block {
        padding: 10px 12px;
    }
    
    .progress {
        height: 18px !important;
    }
    
    .progress-bar {
        font-size: 0.7rem;
    }
    
    .dimension-block .d-flex {
        font-size: 0.8rem;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    
    .question-number
    {
        font-size:12px;
        width: 22px;
        height: 22px;
        line-height: 22px;
        margin-right:5px;
    }
    .answer-label
    {
        font-size:12px;
        min-width:40px;
    }
    .circles-wrapper {
        gap:4px;
      
        width: 100%;
    }
    
   .circles-wrapper {
        display: flex;
        align-items: center;
       
        flex-wrap: wrap;
        justify-content: center;
    }
    
        .circle-option[data-size="1"] .circle ,.circle-option[data-size="7"] .circle {
            width: 26px;
            height: 26px;
        }
        
        .circle-option[data-size="2"] .circle ,.circle-option[data-size="6"] .circle {
            width: 22px;
            height: 22px;
        }
        
        .circle-option[data-size="3"] .circle,.circle-option[data-size="5"] .circle {
            width: 18px;
            height: 18px;
        }
        
        .circle-option[data-size="4"] .circle {
            width: 14px;
            height: 14px;
        }
}

@media (max-width: 576px) {
    .circles-wrapper {
        gap: 1px;
    }
    
  
}

