:root {
    --primary-color: #0000a3;       /* 明亮蓝紫色 */
    --secondary-color: #0067b3;     /* 淡紫色 */
    --accent-color: #cf820d;        /* 珊瑚红作为强调色 */
    --success-color: #0b5a04;       /* 青绿色作为成功色 */
    --light-bg: #40b0df;            /* 浅色背景 */
    --dark-text: #36302d;           /* 深色文本 */
    --light-text: #636e72;          /* 浅色文本 */
}

body {
    position: relative;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    padding-bottom: 50px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/20250627111101.jpg") center/cover no-repeat;
    opacity: 0.7;
    z-index: -1;
}

.navbar {
    background: linear-gradient(90deg, #6a11cb, var(--primary-color));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.nav-title {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    display: inline-block; /* 添加这行，使标题与图片在同一行 */
    margin: 0 0 0 10px; /* 调整边距，取消底部边距，添加左侧边距 */
    vertical-align: middle; /* 垂直居中对齐 */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    position: relative;
}

.navbar-brand img {
    position: relative;
    z-index: 1;
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.7));
    transition: all 0.3s ease;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: calc(100% + 5px); /* 略小于总宽度 */
    height: 80%;
    background: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
    border-radius: 8px;
    z-index: 0;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}

.hero-section {
    padding: 30px 0;
    text-align: center;
}

.hero-title {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
    color: #ff0000; /* 明亮的黄色 */
    margin: 0 auto 30px;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 
        0 0 5px rgba(241, 179, 9, 0.7),  /* 红色阴影 - 内圈 */
        0 0 10px rgba(185, 197, 11, 0.705), /* 红色阴影 - 中间圈 */
        0 0 15px rgba(228, 243, 22, 0.521); /* 红色阴影 - 外圈 */
}

.card-container {
    display: flex;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    width: 90%; /* 核心卡片更宽 */
    max-width: 1000px; /* 最大宽度限制 */
}

@media (max-width: 768px) {
    .card {
        width: 95%;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.form-control, .form-select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.2);
    outline: none;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.25);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.35);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

#resultCard .card-header {
    background: linear-gradient(90deg, var(--success-color), #3dbbaf);
}

#resultCard .card-header::after {
    background: #ffda79;
}


#errorToast {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.toast-body {
    display: flex;
    align-items: center;
    padding: 1rem;
}


.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

.audio-player {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

audio {
    width: 100%;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

footer {
    background: linear-gradient(90deg, #2d3436, #636e72);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0 20px;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.features-section {
    padding: 50px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

#analysisResult {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(74, 108, 247, 0.1);
}

.badge {
    background: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 20px;
    font-size: 12px;
}

.language-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 自定义宽容器 */
.custom-container {
    width: 90%;
    max-width: 1800px; /* 最大宽度限制 */
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .custom-container {
        width: 95%; /* 在中等屏幕上稍微变窄 */
    }
}

@media (max-width: 768px) {
    .custom-container {
        width: 100%; /* 在小屏幕上占满整个宽度 */
        padding: 0 15px;
    }
}