/* Common styles */
:root {
    --primary-color: #FF6B98;
    --primary-hover: #ff4e83;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --max-width: 1440px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 152, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

/* Section styles */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Icons */
.icon-arrow,
.icon-chat,
.icon-scroll-down {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    flex-shrink: 0;
}

/* 箭头图标 */
.icon-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.8em;
    height: 0.8em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-75%, -50%) rotate(-45deg);
}

/* 聊天图标 */
.icon-chat {
    border: 2px solid currentColor;
    border-radius: 1rem;
}

.icon-chat::before {
    content: '';
    position: absolute;
    bottom: -0.4em;
    left: 0.2em;
    width: 0.5em;
    height: 0.5em;
    background: transparent;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.icon-chat::after {
    content: '';
    position: absolute;
    width: 0.25em;
    height: 0.25em;
    background: currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 下滑箭头图标 */
.icon-scroll-down {
    width: 2rem;
    height: 2rem;
}

.icon-scroll-down::before,
.icon-scroll-down::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1em;
    height: 1em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateX(-50%) rotate(-45deg);
}

.icon-scroll-down::before {
    top: 0.2em;
}

.icon-scroll-down::after {
    top: 0.8em;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    section {
        padding: 4rem 0;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
    }

    .section-desc {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    }
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* 响应式栅格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* 响应式工具类 */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
}

/* 页面顶部通用样式 */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -1;
    transition: transform 0.3s ease;
}

.page-banner:hover::before {
    transform: scale(1.05);
}

.page-banner .banner-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-banner h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.page-banner p {
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-banner {
        height: 300px;
    }
    
    .page-banner h1 {
        font-size: 2.5em;
    }
    
    .page-banner p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 250px;
    }
    
    .page-banner h1 {
        font-size: 2em;
    }
    
    .page-banner p {
        font-size: 1.1em;
    }
}

/* 各页面特定背景 */
.about-banner::before {
    background-image: url('../images/resources/studio.jpg');
}

.cases-banner::before {
    background-image: url('../images/resources/operation.jpg');
}

.resources-banner::before {
    background-image: url('../images/resources/production.jpg');
}

.news-banner::before {
    background-image: url('../images/resources/instrument.jpg');
}

.contact-banner::before {
    background-image: url('../images/resources/livestream.jpg');
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .pagination {
        margin: 20px 0;
    }
    
    .page-link {
        padding: 6px 10px;
        margin: 2px;
    }
} 