/* ==========================================
   服务条款页面样式
   ========================================== */

/* 英雄区域 */
.vm-terms-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    text-align: center;
}

.vm-terms-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.vm-terms-hero .container {
    position: relative;
    z-index: 1;
}

.vm-terms-hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.vm-terms-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.vm-terms-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
}

.vm-terms-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 目录导航 */
.vm-terms-toc {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.vm-toc-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.vm-toc-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.vm-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vm-toc-list li a {
    display: block;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 15px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.vm-toc-list li a:hover {
    border-left-color: var(--primary-color);
    background: #fff;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* 服务条款内容 */
.vm-terms-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.vm-terms-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.vm-terms-main {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.terms-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.terms-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.terms-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.terms-section p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.terms-section ul,
.terms-section ol {
    margin: 20px 0;
    padding-left: 25px;
}

.terms-section ul li,
.terms-section ol li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.terms-section ul li strong,
.terms-section ol li strong {
    color: var(--text-dark);
    font-weight: 600;
}


/* 特殊信息盒子 */
.terms-highlight-box,
.terms-warning-box,
.terms-info-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.terms-highlight-box {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 106, 0, 0.1));
    border-left: 4px solid var(--primary-color);
}

.terms-warning-box {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05), rgba(255, 149, 0, 0.05));
    border-left: 4px solid #ff3b30;
}

.terms-info-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
    border-left: 4px solid #007aff;
}

.highlight-icon,
.warning-icon,
.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.highlight-content h4,
.warning-content h4,
.info-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.highlight-content p,
.warning-content p,
.info-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

.highlight-content p:last-child,
.warning-content p:last-child,
.info-content p:last-child {
    margin-bottom: 0;
}

.warning-content ul,
.info-content ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.warning-content ul li,
.info-content ul li {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* 联系信息盒子 */
.contact-info-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

/* 页脚注释 */
.terms-footer-note {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.terms-footer-note p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.terms-footer-note p:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}


/* 侧边栏 */
.vm-terms-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.sidebar-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.sidebar-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tips li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.sidebar-tips li:last-child {
    margin-bottom: 0;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.sidebar-tips p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.sidebar-cta h3 {
    color: white;
}

.sidebar-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 侧边栏链接列表 */
.sidebar-links {
    border: 2px solid var(--border-color);
}

.sidebar-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link-list li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-link-list li:last-child {
    border-bottom: none;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.sidebar-link-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-link-list .link-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sidebar-link-list span:last-child {
    font-size: 15px;
    font-weight: 500;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 1024px) {
    .vm-terms-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .vm-terms-sidebar {
        position: relative;
        top: auto;
    }
    
    .vm-toc-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vm-terms-hero {
        padding: 80px 0 60px;
    }
    
    .vm-terms-hero-title {
        font-size: 36px;
    }
    
    .vm-terms-hero-subtitle {
        font-size: 18px;
    }
    
    .vm-terms-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .vm-terms-content {
        padding: 60px 0;
    }
    
    .vm-terms-main {
        padding: 30px 25px;
    }
    
    .terms-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .terms-section h2 {
        font-size: 24px;
    }
    
    .terms-section h3 {
        font-size: 18px;
    }
    
    .terms-section h4 {
        font-size: 16px;
    }
    
    .terms-section p,
    .terms-section ul li,
    .terms-section ol li {
        font-size: 15px;
    }
    
    .terms-highlight-box,
    .terms-warning-box,
    .terms-info-box {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .highlight-icon,
    .warning-icon,
    .info-icon {
        font-size: 28px;
    }
    
    .sidebar-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .vm-terms-hero-title {
        font-size: 28px;
    }
    
    .vm-terms-hero-subtitle {
        font-size: 16px;
    }
    
    .vm-terms-main {
        padding: 25px 20px;
    }
    
    .terms-section {
        margin-bottom: 35px;
        padding-bottom: 35px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
    
    .terms-section h3 {
        font-size: 17px;
    }
    
    .terms-highlight-box,
    .terms-warning-box,
    .terms-info-box {
        padding: 18px;
    }
    
    .contact-info-box {
        padding: 20px;
    }
}
