/* ========================================
   首页专用样式 - 圆形与三角形组合布局
   ======================================== */

/* Hero Section - 非传统布局 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shape-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--color-linen), var(--color-clay));
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 0;
    height: 0;
    border-left: 40vw solid transparent;
    border-right: 40vw solid transparent;
    border-bottom: 70vw solid var(--color-wood);
    opacity: 0.4;
    transform: rotate(-15deg);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: var(--spacing-md);
}

.hero-circle-badge {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.9);
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(107, 93, 82, 0.15);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-circle-badge span:first-child {
    font-size: 3rem;
    font-weight: bold;
    color: var(--color-accent);
}

.hero-circle-badge span:last-child {
    font-size: 0.9rem;
    color: var(--color-stone);
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-ink);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-earth);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 品牌简介 - 三角分割布局 */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-triangle-container {
    position: relative;
    height: 500px;
}

.about-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.about-triangle-1 {
    top: 0;
    left: 0;
    border-width: 0 250px 400px 0;
    border-color: transparent var(--color-accent) transparent transparent;
}

.about-triangle-2 {
    bottom: 0;
    right: 0;
    border-width: 300px 200px 0 0;
    border-color: var(--color-highlight) transparent transparent transparent;
}

.about-triangle-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(107, 93, 82, 0.2);
}

.about-content h3 {
    font-size: 2rem;
    color: var(--color-ink);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.about-content p {
    color: var(--color-stone);
    margin-bottom: var(--spacing-sm);
    line-height: 2;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 30px rgba(107, 93, 82, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-accent);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-wood);
    margin-top: 5px;
    display: block;
}

/* 核心服务 - 圆形卡片布局 */
.services-section {
    background: linear-gradient(180deg, var(--color-sand), var(--color-linen));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: white;
    border-radius: var(--radius-large);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(184, 149, 107, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    top: 50%;
    left: 50%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(107, 93, 82, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--color-accent), var(--color-highlight));
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-ink);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.service-card p {
    color: var(--color-stone);
    line-height: 1.8;
}

/* 合作品牌 - 交错三角布局 */
.brands-section {
    background: var(--color-ink);
    color: var(--color-sand);
}

.brands-section .section-title h2 {
    color: var(--color-sand);
}

.brands-section .section-title p {
    color: var(--color-linen);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.brand-card:nth-child(odd) {
    transform: skewY(-2deg);
}

.brand-card:nth-child(even) {
    transform: skewY(2deg);
}

.brand-card:hover {
    transform: skewY(0) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.brand-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-small);
    margin-bottom: var(--spacing-sm);
}

.brand-card h4 {
    font-size: 1.1rem;
    color: var(--color-highlight);
    margin-bottom: 5px;
}

.brand-card p {
    font-size: 0.85rem;
    color: var(--color-linen);
}

/* 加盟流程 - 时间轴布局 */
.process-section {
    background: var(--color-sand);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-highlight));
    transform: translateX(-50%);
}

.process-item {
    display: flex;
    justify-content: flex-end;
    padding: var(--spacing-md) 0;
    position: relative;
    width: 50%;
}

.process-item:nth-child(even) {
    justify-content: flex-start;
    margin-left: 50%;
}

.process-dot {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-circle);
    background: var(--color-accent);
    border: 5px solid var(--color-sand);
    top: 50%;
    transform: translateY(-50%);
}

.process-item:nth-child(odd) .process-dot {
    right: -15px;
}

.process-item:nth-child(even) .process-dot {
    left: -15px;
}

.process-content {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-medium);
    width: 90%;
    box-shadow: 0 10px 30px rgba(107, 93, 82, 0.1);
}

.process-content h4 {
    font-size: 1.3rem;
    color: var(--color-ink);
    margin-bottom: 10px;
}

.process-content p {
    color: var(--color-stone);
    font-size: 0.95rem;
}

/* 食材展示 - 圆形画廊 */
.ingredients-section {
    background: linear-gradient(135deg, var(--color-linen), var(--color-clay));
}

.ingredients-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.ingredient-item {
    position: relative;
    border-radius: var(--radius-circle);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.ingredient-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.ingredient-item:hover img {
    transform: scale(1.1);
}

.ingredient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(44, 38, 32, 0.9));
    padding: var(--spacing-md);
    color: white;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.ingredient-item:hover .ingredient-overlay {
    transform: translateY(0);
}

.ingredient-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.ingredient-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 联系咨询 - 斜切布局 */
.contact-section {
    background: var(--color-ink);
    color: var(--color-sand);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 50%, rgba(184, 149, 107, 0.1) 50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-highlight);
}

.contact-info p {
    color: var(--color-linen);
    margin-bottom: var(--spacing-md);
    line-height: 2;
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-sand);
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-large);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--color-linen);
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* 资讯列表 - 首页底部 */
.news-preview-section {
    background: var(--color-sand);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.news-card {
    background: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 93, 82, 0.08);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(107, 93, 82, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: var(--spacing-md);
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--color-wood);
    margin-bottom: 10px;
}

.news-card h4 {
    font-size: 1.2rem;
    color: var(--color-ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    color: var(--color-stone);
    font-size: 0.9rem;
    line-height: 1.7;
}

.news-card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-triangle-container {
        height: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .process-item,
    .process-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        justify-content: flex-start;
    }
    
    .process-item:nth-child(odd) .process-dot,
    .process-item:nth-child(even) .process-dot {
        left: 5px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-circle-badge {
        width: 150px;
        height: 150px;
    }
    
    .hero-circle-badge span:first-child {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-card:nth-child(odd),
    .brand-card:nth-child(even) {
        transform: none;
    }
    
    .ingredients-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ingredients-gallery {
        grid-template-columns: 1fr;
    }
}
