/* 
 * Main Stylesheet for 澄城县姿源黄花菜农民专业合作社
 */

/* General Styles */
:root {
    --primary-color: #f47920; /* 橙色 */
    --secondary-color: #d16618; /* 橙色深色 */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white-color: #ffffff;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", SimSun, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* 内容区域背景 */
main.container {
    background-color: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #e06a10;
    border-color: #e06a10;
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #b85a0e;
    border-color: #b85a0e;
    color: var(--white-color);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Header & Navigation */
.top-bar {
    font-size: 0.9rem;
}

.navbar {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--gray-color);
    line-height: 1.2;
}

.brand-text {
    margin-left: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .active>.nav-link {
    color: var(--secondary-color);
}

.navbar-light .navbar-nav .active>.nav-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 2px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
    z-index: 2;
    width: 80%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Carousel */
.carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    bottom: 100px;
    z-index: 10;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.about-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Core Advantages Section */
.advantages-section {
    padding: 60px 0;
}

.advantage-item {
    margin-bottom: 30px;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.advantage-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.product-card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-title {
    color: var(--secondary-color);
    font-weight: 600;
}

.product-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* News and Technology Section */
.news-tech-section {
    padding: 60px 0;
}

.news-card, .tech-card {
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover, .tech-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.news-date, .tech-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.top-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 3px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-container {
    height: 350px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

footer h5 {
    color: var(--primary-color);
}

footer a {
    color: var(--light-color);
}

footer a:hover {
    color: var(--primary-color);
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    color: var(--white-color);
    min-height: 100vh;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: var(--light-color);
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

.admin-content {
    padding: 20px;
}

.admin-card {
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.admin-card .card-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--white-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* 价格行情模块 */
.price-section {
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.price-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.price-header h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.price-table-container {
    margin: 15px 0;
}

.price-trend h4, .price-advise h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.price-trend p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.price-advise ul {
    padding-left: 20px;
}

.price-advise li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-box {
    margin-top: 30px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.contact-box h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 价格行情页面 */
.page-heading {
    margin-bottom: 30px;
    text-align: center;
}

.page-heading h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-heading .lead {
    color: var(--gray-color);
    font-size: 1.1rem;
} 