/*
Theme Name: Huanyu V1
Version: 1.1
Text Domain: huanyu-v1
*/

/* 1. 全局变量与基础设置 */
:root {
    --primary-dark: #0C765C;
    --primary: #1F9040;
    --secondary: #3FBD36;
    --accent: #D5F342;
    --bg-light: #F4FFF0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* 防止手机端左右晃动 */
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Index 页面样式 (针对 index.php) */
.index-hero {
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.main-title {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 2.5rem;
    line-height: 1.2;
}

.btn-create {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-create:hover {
    background: var(--primary);
}

/* 3. Footer 样式 (从 footer.php 移至此处) */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-group h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-list { list-style: none; }
.contact-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.contact-list a { color: white; text-decoration: none; transition: color 0.3s; }
.contact-list a:hover { color: var(--accent); }

.social-links { display: flex; gap: 15px; margin-top: 10px; }
.social-icon {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; font-weight: 700; transition: all 0.3s;
}
.social-icon:hover {
    background: var(--accent); color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px; padding-top: 25px;
    text-align: center; color: rgba(255,255,255,0.7);
}

/* 4. 手机端适配 (Media Queries) */
@media (max-width: 768px) {
    /* Index 缩小字体和间距 */
    .main-title { font-size: 1.8rem; }
    .index-hero { padding: 60px 20px; }

    /* Footer 变更为单列布局 */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand { align-items: center; }

    .footer-contact {
        grid-template-columns: 1fr; /* 手机端联系方式不再分两列 */
    }

    /* 强制“Follow Us”在手机端不跨行 */
    .footer-social-section {
        grid-column: span 1 !important;
    }
    .main-nav {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: center; /* 整体居中 */
}

.nav-links {
    display: flex;
    gap: 40px;          /* 菜单间距，可调整 */
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
}
