/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3a86ff;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e0e0e0;
}

/* Main content styles */
main {
    padding: 20px 0;
}

h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Wheel section styles */
.wheel-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 20px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.segment {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
}

.segment.yes {
    background-color: #4CAF50;
    left: 0;
}

.segment.no {
    background-color: #FF5252;
    right: 0;
}

/* Remove old pointer styles */

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 100px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; /* 下方更圆，上方更尖 */
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 10;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%); /* 翻转的三角形，尖端在下 */
}

.spin-button span {
    display: inline-block;
    transform: translateY(-15px); /* 将文字向上移动一点以居中 */
}

.spin-button:hover {
    background-color: #333;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Results section styles */
.results-section {
    width: 300px;
}

.results-count {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.label {
    font-size: 1rem;
    color: #666;
}

/* Inputs section styles */
.inputs-section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.inputs-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

.input-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.mode-toggle, .input-sets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-container {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background-color: #3a86ff;
    color: white;
    border-color: #3a86ff;
}

.number-selector {
    display: flex;
    gap: 10px;
}

.number-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
}

.number-btn.active {
    background-color: #3a86ff;
    color: white;
    border-color: #3a86ff;
}

.tool-settings {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tool-settings-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.tool-settings-header span {
    font-size: 0.9rem;
    color: #888;
}

/* Quick links styles */
.quick-links {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin: 0 auto 30px;
    max-width: 1200px;
}

.quick-links h3 {
    margin-bottom: 10px;
}

.quick-links p {
    color: #3a86ff;
    font-size: 0.9rem;
}

/* Info section styles */
.info-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.info-section h1 {
    margin-bottom: 20px;
}

.table-of-contents {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.table-of-contents span {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.table-of-contents ol {
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 5px;
}

.info-section h2 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.info-section p {
    margin-bottom: 15px;
}

.info-section ol, .info-section ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.info-section hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #eee;
}

.other-tools {
    margin-top: 30px;
}

.tool-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tool-card h3 {
    margin-bottom: 10px;
}

.tool-card a {
    color: #3a86ff;
    text-decoration: none;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .wheel-wrapper {
        width: 333px;
        height: 333px;
    }
    
    .wheel-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .wheel-section {
        margin-bottom: 20px;
    }
    
    .results-section {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
} 