/*
Theme Name:   Station Resource
Theme URI:    https://station-wordpress.local
Description:  Station站群系统资源站独立主题
Author:       Station Team
Author URI:   https://station-wordpress.local
Version:      3.3.1
License:      GPL-2.0+
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  station-resource
Domain Path:  /languages
Tags:         resource, download, vip, membership
*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1d4ed8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
}

.station-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.station-main {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.station-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.station-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.station-logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.station-logo a {
    color: #1e293b;
    text-decoration: none;
}

.station-nav {
    display: flex;
    align-items: center;
}

.station-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 24px;
}

.station-menu li a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.station-menu li a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.station-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.station-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.station-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.station-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.station-btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.station-btn-outline:hover {
    background: #2563eb;
    color: white;
}

.station-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.station-mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
}

.station-footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.station-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.station-footer-widget h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.station-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.station-footer-menu li {
    margin-bottom: 8px;
}

.station-footer-menu a,
.station-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.station-footer-menu a:hover,
.station-footer-links a:hover {
    color: white;
}

.station-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.station-footer-links li {
    margin-bottom: 8px;
}

.station-footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.station-footer-bottom a {
    color: #94a3b8;
}

.station-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.station-grid {
    display: grid;
    gap: 24px;
}

.station-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.station-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.station-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.station-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.station-section-title {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.station-section-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.station-section-more:hover {
    color: #1d4ed8;
}

.station-hot-section {
    margin-bottom: 40px;
}

.station-home {
    padding: 40px 0;
}

.station-no-content {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.station-no-content-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.station-no-content h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.station-no-content p {
    margin: 0;
    color: #64748b;
}

.station-resource-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.station-resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s;
}

.station-resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

.station-resource-card:hover::before {
    transform: scaleX(1);
}

.station-resource-card-inner {
    padding: 24px;
}

.station-resource-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.station-resource-card h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.station-resource-card h3 a:hover { 
    color: #2563eb; 
}

.station-resource-meta {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
    align-items: center;
}

.station-resource-category {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.station-resource-card:hover .station-resource-category {
    background: #2563eb;
    color: white;
}

.station-resource-excerpt {
    font-size: .92rem;
    color: #64748b;
    line-height: 1.6;
}

.station-post-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
}

.station-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s;
}

.station-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

.station-post-card:hover::before {
    transform: scaleX(1);
}

.station-post-card .station-card-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.station-post-card .station-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.station-post-card:hover .station-card-img {
    transform: scale(1.05);
}

.station-post-card .station-card-content {
    padding: 20px;
}

.station-post-card .station-card-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.station-post-card .station-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.station-post-card:hover .station-card-title a {
    color: #10b981;
}

.station-post-card .station-card-meta {
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap;
}

.station-post-card .station-card-excerpt {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.6;
}

.station-resource-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.station-vip-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.station-free-badge {
    background: #16a34a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.station-user-center {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 32px auto;
}

.station-user-sidebar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.station-user-avatar {
    width: 96px; 
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: block;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    transition: all 0.3s;
}

.station-user-avatar:hover {
    transform: scale(1.05);
}

.station-user-name {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.station-user-role {
    text-align: center;
    font-size: .85rem;
    color: #64748b;
    margin-bottom: 24px;
}

.station-user-nav {
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.station-user-nav li { 
    margin-bottom: 4px; 
}

.station-user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px; 
    color: #1e293b;
    text-decoration: none; 
    font-size: .92rem;
    transition: all 0.3s;
}

.station-user-nav a:hover,
.station-user-nav li.current a {
    background: #eff6ff;
    color: #2563eb;
}

.station-user-nav li.current a {
    font-weight: 600;
}

.station-user-nav i {
    width: 18px;
    text-align: center;
}

.station-user-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.station-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.station-section-title h2 {
    margin: 0;
    font-size: 1.4rem;
}

.station-section-title a {
    font-size: .9rem;
    color: #2563eb;
}

.station-download-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s;
}

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

.station-download-item:hover {
    background: #f8fafc;
}

.station-download-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.station-download-info {
    flex: 1;
}

.station-download-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.station-download-info p {
    margin: 0;
    font-size: .85rem;
    color: #64748b;
}

.station-download-time {
    font-size: .85rem;
    color: #64748b;
}

.station-order-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.station-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.station-order-id {
    font-size: .9rem;
    color: #64748b;
}

.station-order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
}

.station-order-status.success {
    background: #dcfce7;
    color: #16a34a;
}

.station-order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.station-order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.station-order-details {
    display: flex;
    align-items: center;
}

.station-order-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.station-order-info {
    flex: 1;
}

.station-order-info h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.station-order-price {
    font-weight: 600;
    color: #2563eb;
}

.station-order-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: #64748b;
}

.station-vip-card {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 32px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.station-vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.station-vip-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.station-vip-card-inner {
    position: relative;
    z-index: 1;
}

.station-vip-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.station-vip-card p {
    margin: 0 0 24px;
    opacity: 0.9;
}

.station-vip-status {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: .9rem;
    margin-bottom: 20px;
}

.station-vip-expire {
    font-size: .9rem;
    opacity: 0.8;
}

.station-login-form {
    max-width: 420px;
    margin: 40px auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
}

.station-login-form h2 {
    text-align: center;
    margin-bottom: 8px;
}

.station-login-form p {
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
}

.station-form-group {
    margin-bottom: 20px;
}

.station-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.station-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.station-form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.station-form-actions {
    margin-top: 24px;
}

.station-form-actions .station-btn {
    width: 100%;
    justify-content: center;
}

.station-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: .9rem;
}

.station-form-links a {
    color: #64748b;
}

.station-form-links a:hover {
    color: #2563eb;
}

.station-captcha-group {
    display: flex;
    gap: 12px;
}

.station-captcha-group .station-form-control {
    flex: 1;
}

.station-captcha-img {
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
}

.station-price {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
}

.station-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.station-pricing-section {
    padding: 40px 0;
}

.station-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.station-pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
}

.station-pricing-card.featured {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

.station-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

.station-pricing-card h3 {
    margin-bottom: 8px;
}

.station-pricing-card p {
    color: #64748b;
    margin-bottom: 24px;
}

.station-pricing-price { 
    font-size: 3rem; 
    font-weight: 800; 
    color: #2563eb;
    line-height: 1;
}

.station-pricing-price small { 
    font-size: 1rem; 
    color: #64748b;
    font-weight: 400;
}

.station-pricing-features {
    list-style: none; 
    padding: 0; 
    margin: 24px 0;
    text-align: left;
}

.station-pricing-features li {
    padding: 10px 0; 
    font-size: .95rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-pricing-features li::before { 
    content: '✓'; 
    color: #16a34a;
    font-weight: bold;
    font-size: 1.1rem;
}

.station-ad-banner {
    text-align: center;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

.station-ad-banner img { 
    max-width: 100%; 
    border-radius: 12px;
    transition: all 0.3s;
}

.station-ad-banner:hover img {
    transform: scale(1.02);
}

.station-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, rgba(0,0,0,.05) 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: station-skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes station-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes station-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes station-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.station-animate-fade-in {
    animation: station-fade-in 0.5s ease forwards;
}

.station-animate-fade-in-up {
    animation: station-fade-in-up 0.5s ease forwards;
}

@media (max-width: 1024px) {
    .station-user-center {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    .station-resource-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .station-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .station-user-center {
        grid-template-columns: 1fr;
    }
    .station-user-sidebar {
        position: static;
        order: -1;
    }
    .station-resource-grid {
        grid-template-columns: 1fr;
    }
    .station-pricing-card.featured {
        transform: none;
    }
    .station-pricing-grid {
        grid-template-columns: 1fr;
    }
    .station-pricing-price {
        font-size: 2.5rem;
    }
    .station-nav {
        display: none;
    }
    .station-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px;
    }
    .station-nav.active .station-menu {
        flex-direction: column;
        gap: 8px;
    }
    .station-mobile-menu-toggle {
        display: flex;
    }
    .station-header-actions {
        gap: 8px;
    }
    .station-btn {
        padding: 8px 14px;
        font-size: .9rem;
    }
    .station-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .station-container {
        padding: 0 16px;
    }
    .station-main {
        padding: 20px 0;
    }
    .station-footer-widgets {
        grid-template-columns: 1fr;
    }
    .station-login-form {
        padding: 24px;
        margin: 20px 16px;
    }
}
