/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero 区域样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

/* 功能图标样式 */
.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 统计数字样式 */
.stat-number {
    font-size: 1.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    line-height: 1.2;
}

/* 演示预览样式 */
.demo-preview {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

/* 会员卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* 信任指标动画 */
.trust-indicators {
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }

    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .hero-content .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-icon {
        margin: 0 auto 0.5rem auto;
    }

    .hero-content .d-flex.align-items-center > div {
        text-align: center;
    }
    
    .demo-preview {
        margin-top: 40px;
        animation: none; /* 禁用浮动动画 */
    }

    #guestButtons {
        display: none; /* 在移动端导航栏隐藏登录注册按钮，因为页面已有 */
    }

    #membershipSection, #testimonialsSection, #faqSection {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    h2.fw-bold {
        font-size: 1.75rem;
    }
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* 表单样式 */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 筛选区域样式 */
.filter-section {
    background-color: #fff;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin: 10px 0;
    }
}

/* 加载状态样式 */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #007bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误提示样式 */
.alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* 表格响应式处理 */
.table-responsive {
    margin-bottom: 0;
}

/* 输入框组样式 */
.input-group {
    margin-bottom: 1rem;
}

/* 表单验证样式 */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Function Demo Section */
#functionDemoSection {
    background: #f8f9fa;
}

#functionDemoSection .badge {
    font-size: 1rem;
    height: 2rem;
    width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Testimonials Section */
#testimonialsSection .card {
    border: 1px solid #e9ecef;
}

#testimonialsSection .card-body {
    position: relative;
}

#testimonialsSection .card-body::before {
    content: '\201C'; /* Left double quotation mark */
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: #e9ecef;
    line-height: 1;
}

#testimonialsSection .card-footer {
    background-color: transparent;
}

/* FAQ Section */
#faqSection {
    background-color: #fff;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: .25rem;
    margin-bottom: 1rem;
}

.accordion-button {
    font-weight: 600;
    color: #343a40;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: #fff !important;
    text-decoration: underline;
}