/* 可力艺术官网 - 样式表 */

:root {
    --primary: hsl(18, 65%, 55%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-dark: hsl(18, 65%, 45%);
    --background: hsl(35, 25%, 97%);
    --card: hsl(0, 0%, 100%);
    --foreground: hsl(30, 15%, 15%);
    --muted-foreground: hsl(30, 10%, 45%);
    --accent: hsl(18, 60%, 96%);
    --accent-foreground: hsl(18, 65%, 45%);
    --border: hsl(30, 15%, 88%);
    --ring: hsl(18, 65%, 55%);
    --success: hsl(142, 60%, 45%);
    --warning: hsl(38, 90%, 55%);
    --destructive: hsl(0, 72%, 51%);
    --max-width: 1152px;
    --header-height: 64px;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}
.header.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-foreground);
    background-color: var(--accent);
}
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    padding: 4px;
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span {
    display: block;
    width: 100%; height: 2px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all var(--transition-base);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background-color: var(--background);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.mobile-nav-link:hover { background-color: var(--accent); color: var(--accent-foreground); }
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { min-height: 700px; } }

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
    max-width: 800px;
}
.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4rem; } }
.hero-title-accent { color: var(--primary); }
.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}
@media (min-width: 640px) { .hero-desc { font-size: 1.125rem; } }
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: auto; display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}
.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 4px 6px rgba(217, 119, 80, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 12px rgba(217, 119, 80, 0.4);
    transform: translateY(-2px);
}
.btn-white {
    background-color: white;
    color: var(--foreground);
}
.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.btn-full { width: 100%; }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.section-header { text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-desc {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.section-about { background-color: var(--background); }

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-content { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}
.about-paragraph {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 640px) { .about-features { grid-template-columns: repeat(3, 1fr); } }

.feature-item {
    padding: 1.5rem;
    background-color: var(--card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}
.feature-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-title { font-size: 1rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* 关于图片 */
.about-image { position: relative; }
.about-image-main {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-image-decoration {
    position: absolute;
    top: -20px; right: -20px; bottom: 20px; left: 20px;
    background-color: var(--primary);
    border-radius: var(--radius-xl);
    z-index: 1;
    opacity: 0.2;
}

/* 统计数据 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
@media (min-width: 768px) { .stat-number { font-size: 3rem; } }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.section-courses { background-color: var(--background); }

.course-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.category-btn:hover, .category-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.courses-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
    cursor: pointer;
}
.course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.course-image { aspect-ratio: 4/3; overflow: hidden; }
.course-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.course-card:hover .course-image img { transform: scale(1.05); }
.course-content { padding: 1.5rem; }
.course-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-foreground);
    background-color: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}
.course-title { font-size: 1.125rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }
.course-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.course-meta { font-size: 0.75rem; color: var(--muted-foreground); }

.section-teachers { background-color: hsl(18, 60%, 96%); }

.teachers-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .teachers-grid { grid-template-columns: repeat(4, 1fr); } }

.teacher-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}
.teacher-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.teacher-avatar {
    width: 96px; height: 96px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--accent);
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-name { font-size: 1.125rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.25rem; }
.teacher-title { font-size: 0.875rem; color: var(--primary); font-weight: 500; margin-bottom: 0.75rem; }
.teacher-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-gallery { background-color: var(--background); }

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-base);
}
.gallery-item:hover .gallery-overlay { background-color: rgba(0, 0, 0, 0.4); }
.gallery-icon {
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.gallery-item:hover .gallery-icon { opacity: 1; }

.gallery-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}
.gallery-item:hover .gallery-info { transform: translateY(0); }
.gallery-title { font-size: 0.875rem; font-weight: 500; }
.gallery-author { font-size: 0.75rem; opacity: 0.8; }

.section-contact { background-color: var(--primary); color: white; }

.contact-wrapper {
    display: grid;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .contact-wrapper { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

.contact-title { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-title { font-size: 2.5rem; } }

.contact-desc { color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-text { display: flex; flex-direction: column; }
.contact-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 0.25rem; }
.contact-value { font-size: 1.125rem; font-weight: 500; color: white; }

/* 联系表单 */
.contact-form-wrapper {
    background-color: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.form-title { font-size: 1.25rem; font-weight: 600; color: var(--foreground); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--foreground);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 80, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-foreground); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: none;
}
.form-message.success {
    display: block;
    background-color: hsl(142, 60%, 95%);
    color: var(--success);
    border: 1px solid hsl(142, 60%, 85%);
}
.form-message.error {
    display: block;
    background-color: hsl(0, 72%, 95%);
    color: var(--destructive);
    border: 1px solid hsl(0, 72%, 85%);
}

.footer {
    background-color: hsl(30, 15%, 12%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}
.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-content { grid-template-columns: 2fr 3fr; } }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.footer-desc { font-size: 0.875rem; opacity: 0.8; max-width: 300px; }

.footer-links { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }

.footer-title { font-size: 0.875rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.footer-column ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-column a, .footer-column li {
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}
.footer-column a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}
.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}
.modal-content { position: relative; max-width: 90vw; max-height: 90vh; z-index: 1; }
.modal-image { max-width: 100%; max-height: 90vh; border-radius: var(--radius-lg); }

.modal-close {
    position: absolute;
    top: -40px; right: 0;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
}
.modal-close:hover { background-color: rgba(255, 255, 255, 0.2); }

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--muted-foreground);
}
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-message, .empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-foreground);
}
.error-message { color: var(--destructive); }


