* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-text {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.logo-brand {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-menu a:hover {
    color: #1890ff;
}

.nav-menu a.active {
    color: #1890ff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
}

/* 页面切换 */
.page {
    display: none;
    flex: 1;
}

.page.active {
    display: block;
}

/* 轮播图容器 */
.carousel-container {
    width: 100%;
    height: calc(100vh - 260px);
    min-height: 500px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.carousel-slide:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 600px;
}

.slide-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.95;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 关于页面 */
.about-content {
    flex: 1;
    padding: 3rem 0;
    background: #ffffff;
}

.page-title {
    font-size: 2rem;
    color: #333;
    margin: 0 0 3rem 0;
    text-align: center;
    font-weight: 500;
}

.content-section {
    background: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 500;
    position: relative;
    padding-left: 1rem;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #1890ff;
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 500;
}

.highlight-text {
    font-size: 1.2rem;
    color: #1890ff;
    font-weight: 500;
    line-height: 1.8;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0 0 1rem 0;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.value-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1890ff;
    font-size: 1.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    border: 1px solid #e5e5e5;
}

.info-item strong {
    color: #333;
}

/* 联系页面 */
.contact-content {
    flex: 1;
    padding: 3rem 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info,
.contact-form-wrapper {
    background: #fafafa;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.info-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.info-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* 表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.required {
    color: #ff4d4f;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    background: #40a9ff;
}

.submit-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

/* 页脚 */
.footer {
    background: #f5f5f5;
    color: #666;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #1890ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.footer-icp {
    font-size: 0.85rem;
    color: #999;
}

/* 对话框样式 */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.dialog.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2001;
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.dialog-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 500;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    border-radius: 4px;
}

.dialog-close:hover {
    color: #333;
    background: #f5f5f5;
}

.dialog-body {
    padding: 1.5rem;
}

.dialog-body p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.dialog-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

/* 违规提醒对话框样式 */
.violation-dialog {
    max-width: 600px;
}

.violation-dialog .dialog-header {
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.violation-body {
    padding: 2rem 1.5rem;
}

.violation-greeting {
    font-size: 1rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.violation-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    text-align: justify;
}

.violation-highlight {
    color: #ff6b35;
    font-weight: 500;
}

.violation-email {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.email-link {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.2s;
}

.email-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

.violation-dialog .dialog-footer {
    text-align: center;
    padding: 1.5rem;
}

.violation-confirm {
    min-width: 120px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* 用户服务协议对话框样式 */
.agreement-dialog {
    max-width: 800px;
    max-height: 90vh;
}

.agreement-dialog .dialog-header {
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.agreement-dialog .dialog-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
}

.agreement-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #333;
}

.agreement-body p {
    margin: 0.5rem 0;
    text-align: justify;
}

.agreement-title {
    font-weight: 600;
    color: #333;
    margin: 1rem 0 0.5rem 0 !important;
}

.agreement-dialog .dialog-footer {
    text-align: center;
    padding: 1rem 1.5rem;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        height: calc(100vh - 280px);
        min-height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-desc {
        font-size: 1.1rem;
    }
    
    .slide-icon {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .carousel-container {
        height: calc(100vh - 300px);
        min-height: 350px;
        padding: 0;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-desc {
        font-size: 1rem;
    }
    
    .slide-icon {
        font-size: 3.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}
