/* ============================================
   SQRUPS Website - Main Stylesheet
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b70008;
    --secondary-color: #b70008;
    --accent-color: #b70008;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --green-light: #a8e69f;
    --green-dark: #3d7a32;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #333;
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
}
.actives{
    border-bottom: 2px solid #b70008; padding-bottom: 5px;
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* ============================================
   Video Section (Index Page)
   ============================================ */
.video-section {
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* ============================================
   Hero Section (Index Page)
   ============================================ */
.hero {
    color: #000;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.2s both;
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.4s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1s 0.6s both;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* ============================================
   Features Section (Index Page)
   ============================================ */
.features {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* ============================================
   4Rs Section (Index Page)
   ============================================ */
.four-rs {
    padding: 80px 20px;
    background: var(--bg-light);
}

.four-rs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.r-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s;
}

.r-card:hover {
    transform: translateY(-5px);
}

.r-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.r-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ============================================
   Quote Section (Index Page)
   ============================================ */
.quote-section {
    padding: 80px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-text {
    text-align: left;
}

.quote-section blockquote {
    font-size: 2rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-dark);
}

.quote-section .quote-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.quote-section .quote-highlight {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.quote-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    background: var(--bg-light);
}

.quote-image-container {
    position: relative;
    width: 100%;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
}

/* ============================================
   Testimonials Section (Index Page)
   ============================================ */
.testimonials {
    padding: 80px 20px;
    background: var(--white);
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: #c82026;
    padding: 60px 80px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-sizing: border-box;
}

.testimonial-title {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-card h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
}

.testimonial-card p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.testimonial-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.testimonial-nav.prev {
    left: 20px;
}

.testimonial-nav.next {
    right: 20px;
}

/* ============================================
   Store Info Section (Index Page)
   ============================================ */
.store-info {
    padding: 80px 20px;
    background: var(--bg-light);
    text-align: center;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    margin-top: 10px;
}

.store-video-container {
    margin: 40px auto 0;
    max-width: 500px;
    width: 100%;
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 比例，高度小于宽度 */
    height: 0;
}

.store-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Contact Section (Contact Page)
   ============================================ */
.contact-section {
    padding: 80px 20px;
    background: var(--white);
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-option {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
}

.contact-option h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-option h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background: var(--white);
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: border-color 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
}

.submit-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #950006;
}

.team-section {
    text-align: center;
}

.team-link {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 20px;
}

.team-link:hover {
    background: #950006;
}

.address-info {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 15px;
}

.address-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.address-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   News Section (News Page)
   ============================================ */
.news-section {
    padding: 80px 20px;
    background: var(--white);
}

.news-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    align-items: start;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-thumbnail,
.news-item-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.news-content,
.news-item-content {
    flex: 1;
}

.news-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.news-link:hover {
    color: #950006;
    text-decoration: underline;
}

/* ============================================
   Stores Section (Stores Page)
   ============================================ */
.stores-section {
    padding: 80px 20px;
    background: var(--white);
}

.stores-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.stores-intro {
    text-align: center;
    margin-bottom: 40px;
}

.stores-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.stores-intro .quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color);
    margin: 20px 0;
}

.stores-intro hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 30px auto;
    max-width: 200px;
}

.stores-description {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.stores-subtitle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.stores-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stores-list-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    max-height: 600px;
    overflow-y: auto;
}

.stores-list-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.store-list {
    list-style: none;
}

.store-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.3s;
}

.store-item:hover {
    background: rgba(183, 0, 8, 0.05);
}

.store-item:last-child {
    border-bottom: none;
}

.store-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    display: block;
}

.store-item a:hover {
    color: var(--primary-color);
}

.store-item.active {
    background: rgba(183, 0, 8, 0.1);
}

.store-item.active a {
    color: var(--primary-color);
    font-weight: bold;
}

.map-container {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    height: 600px;
    position: sticky;
    top: 100px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.store-hint {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Desktop - PC版视频高度固定为500px */
@media (min-width: 769px) {
    .video-container {
        padding-bottom: 0;
        height: 500px;
    }

    .store-video-container {
        aspect-ratio: 16 / 9; /* 确保16:9横向比例 */
        padding-bottom: 0;
        height: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Index Page */
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .four-rs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .testimonial-card h4 {
        font-size: 1.5rem;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .testimonial-nav.prev {
        left: 10px;
    }

    .testimonial-nav.next {
        right: 10px;
    }

    .quote-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quote-text {
        text-align: center;
    }

    .quote-section blockquote {
        font-size: 1.5rem;
    }

    .store-stats {
        gap: 30px;
    }

    .video-container {
        padding-bottom: 56.25%;
    }

    .store-video-container {
        max-width: 100%;
        margin: 30px auto 0;
    }

    /* Contact Page */
    .contact-title {
        font-size: 2rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-option {
        padding: 30px 20px;
    }

    /* News Page */
    .news-title {
        font-size: 2rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-item-thumbnail {
        height: 200px;
    }

    .news-item h3 {
        font-size: 1.3rem;
    }

    /* Stores Page */
    .stores-title {
        font-size: 2rem;
    }

    .stores-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stores-list-container {
        max-height: none;
        padding: 20px;
    }

    .map-container {
        height: 400px;
        position: relative;
        top: 0;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Index Page */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .features,
    .four-rs,
    .testimonials,
    .store-info {
        padding: 50px 20px;
    }

    /* Contact Page */
    .contact-section {
        padding: 50px 20px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-option h2 {
        font-size: 1.5rem;
    }

    /* News Page */
    .news-section {
        padding: 50px 20px;
    }

    .news-title {
        font-size: 1.8rem;
    }

    .news-item h3 {
        font-size: 1.2rem;
    }

    /* Stores Page */
    .stores-section {
        padding: 50px 20px;
    }

    .stores-title {
        font-size: 1.8rem;
    }

    .stores-subtitle {
        font-size: 1.5rem;
    }
}
