/**
 * 花好了官网 - 自定义样式
 * 主色调: 黑色, 红色点缀
 */

/* 全局样式 */
:root {
    --primary-color: #dc3545;
    --dark-color: #111111;
    --darker-color: #0a0a0a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--dark-color);
    color: #fff;
    line-height: 1.7;
}

.text-muted{
    color: rgb(197 197 197 / 75%) !important;
}

.bg-darker {
    background-color: var(--darker-color);
}

.text-gradient {
    background: linear-gradient(to right, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航栏样式 */
.navbar {
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* 英雄区域样式 */
.hero-section {
    padding-top: 80px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right bottom, rgba(220, 53, 69, 0.2), transparent 50%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-features {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border-left: 3px solid var(--primary-color);
}

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

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 功能特点样式 */
.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* 使用流程样式 */
.workflow-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.workflow-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.workflow-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.workflow-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* 作品展示样式 */
.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.5s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.showcase-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 模板中心样式 - 简单版 */
.template-simple-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-simple-list li {
    font-size: 1.2rem;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.template-simple-list li:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-5px);
}

@media (max-width: 767px) {
    .template-simple-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .template-simple-list {
        grid-template-columns: 1fr;
    }
}

/* 模板中心样式 */
.template-card {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.template-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.template-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* 定价表样式 - 更新版 */
.pricing-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.premium {
    background-color: rgba(220, 53, 69, 0.05);
    border: 2px solid var(--primary-color);
    z-index: 1;
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.15);
}

.pricing-card.premium:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.pricing-label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

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

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.discount-text {
    font-size: 0.9rem;
}

.pricing-features {
    margin-bottom: 25px;
}

.pricing-features ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.pricing-features ul li i {
    position: absolute;
    left: 0;
    top: 3px;
}

.pricing-features ul li strong {
    color: var(--primary-color);
}

.pricing-footer {
    text-align: center;
}

/* 价格切换按钮组 */
.pricing-tabs .btn-group {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
}

.pricing-tabs .btn {
    border-radius: 50px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.pricing-tabs .btn.active {
    background-color: var(--primary-color);
    color: white;
}

.pricing-tabs .btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页脚样式 */
.footer {
    padding-top: 80px;
    background-color: var(--darker-color);
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 响应式调整 */
@media (max-width: 767px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-image-wrapper {
        margin-top: 40px;
    }
    
    .feature-card, 
    .workflow-card, 
    .pricing-card {
        padding: 20px;
    }
    
    .workflow-number {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* 作品展示区图片加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.showcase-item:nth-child(1) { animation-delay: 0.1s; }
.showcase-item:nth-child(2) { animation-delay: 0.2s; }
.showcase-item:nth-child(3) { animation-delay: 0.3s; }
.showcase-item:nth-child(4) { animation-delay: 0.4s; }
.showcase-item:nth-child(5) { animation-delay: 0.5s; }
.showcase-item:nth-child(6) { animation-delay: 0.6s; }
.showcase-item:nth-child(7) { animation-delay: 0.7s; }
.showcase-item:nth-child(8) { animation-delay: 0.8s; }
.showcase-item:nth-child(9) { animation-delay: 0.9s; }
.showcase-item:nth-child(10) { animation-delay: 1.0s; }
.showcase-item:nth-child(11) { animation-delay: 1.1s; }
.showcase-item:nth-child(12) { animation-delay: 1.2s; }
.showcase-item:nth-child(13) { animation-delay: 1.3s; }
.showcase-item:nth-child(14) { animation-delay: 1.4s; }
.showcase-item:nth-child(15) { animation-delay: 1.5s; }

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 按钮悬停效果 */
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* 滚动到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* 图片查看模态框样式 */
.modal-content {
    background-color: rgba(17, 17, 17, 0.95) !important;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header, .modal-footer {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 0;
}

#modalImage {
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-title {
    font-weight: 600;
}

.modal-description h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-description p {
    font-size: 1rem;
    margin-bottom: 0;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* 修改鼠标指针形状，提示图片可点击 */
.showcase-item {
    cursor: pointer;
}

/* 模板中心样式 - 错落排列版 */
.template-staggered {
    margin: 30px 0;
}

.template-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.template-row.offset {
    padding-left: 8%;
    padding-right: 8%;
}

.template-row span {
    font-size: 1.2rem;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    margin: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.template-row span:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .template-row, .template-row.offset {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }
}

/* 年付专属样式 */
.annual-bonus {
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px !important;
    border-left: 3px solid var(--primary-color);
}

.annual-bonus i {
    color: var(--primary-color) !important;
}

.annual-bonus strong {
    color: var(--primary-color);
}

.discount-box {
    margin: 15px 0;
}

.discount-box .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
} 