/*
Theme Name: 闪遇婚恋主题
Theme URI: https://example.com/shan-yu
Author: GM
Author URI: https://example.com
Description: 一款专为婚恋网站设计的闪遇主题，支持会员展示、相亲匹配等功能。闪遇 - 快速遇见真爱。
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shan-yu
Tags: 婚恋, 相亲, 交友, 会员, 响应式

This theme, like many others, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    --primary-color: #e91e63;
    --primary-light: #f8bbd9;
    --primary-dark: #c2185b;
    --secondary-color: #ff9800;
    --accent-color: #ff5722;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fafafa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.site-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}

.site-title:hover {
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(233, 30, 99, 0.8), rgba(194, 24, 91, 0.8)), url('images/hero-bg.jpg') center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Members Section */
.members-section {
    padding: 60px 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-photo {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.member-info {
    padding: 20px;
}

.member-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.member-age {
    color: var(--text-light);
    margin-bottom: 10px;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.member-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Footer Styles */
.site-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        gap: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Single Member Page */
.single-member {
    padding: 40px 0;
}

.member-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.member-detail-photo img {
    width: 100%;
    border-radius: 15px;
}

.member-detail-info h1 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.member-detail-info .member-age {
    font-size: 18px;
}

.member-detail-info .member-tags {
    margin: 20px 0;
}

.member-detail-section {
    margin-bottom: 25px;
}

.member-detail-section h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.member-detail-section p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Search Filter */
.search-filter {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-filter form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-filter .form-group {
    margin-bottom: 0;
}

.search-filter .form-group select,
.search-filter .form-group input {
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
}
